Jump to content

Recommended Posts

Posted

Hello,

I am executing 2 scritps: GUI.exe and dnsflush.exe'

The GUI program runs dnsflush.exe with the command: ShellExecuteWait(@ScriptDir & '\dnsflush.exe')

dnsflush.exe has #RequireAdmin

For some reason  the window requiring the admin account and Password appears, but in some Computers it doesn´t.

How can I force this script to ask for admin account and Password(UAC) on every computer?

Note: users are not admin

dnsflush.exe

#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=dnsflush.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <AutoItConstants.au3>
#include <MsgBoxConstants.au3>




MsgBox(0, "Output", "test")

 

 

 

  • Developers
Posted
1 minute ago, hendrikhe said:

Any chance to force it?

I hope not or else that would invalidate GPO's, but have no idea what the difference is yet .;)
You will have to sort out the exact difference for those users and maybe something can be done.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...