Jump to content
hendrikhe

#RequireAdmin UAC not showing

Recommended Posts

hendrikhe

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")

 

 

 

Share this post


Link to post
Share on other sites
Jos

Well it will when the users aren't Administrator and the UAC is enabled.
What is different on those pc's where you don't get the prompt?

Jos 


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

Share this post


Link to post
Share on other sites
hendrikhe

different coutries, I guess GPO is preventing it.

Any chance to force it?

Share this post


Link to post
Share on other sites
Jos
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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
hendrikhe

Well I guess, different countries = different GPO in our network

Share this post


Link to post
Share on other sites

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

×