Jump to content

Windows 10 and UAC


Recommended Posts

I am trying to use RUNWAIT to run an install.  When I run the script, the lines under RUNWAIT run, but the program does not install.  If I run the install from a command line, the UAC will ask for permission.

I do have #RequireAdmin on the top of my script, and when I run it, UAC prompts.  Shouldn't everything the script do everything as admin after that?

Link to comment
Share on other sites

What is the return value you get from the RunWait function?
 

$iResult = RunWait(....
$iError = @‌error
msgbox(0,"RunWait Result", "Return Value: " & $iResult & @‌crlf & "Error Code: " & $iError)

 

Edited by spudw2k
Link to comment
Share on other sites

Hmmm....
What is the path to the installer?  Is it local to the machine or on a share somewhere?

Just for troubleshooting...what happens if you change the RunWait to simply open a command prompt and then manually run the installer from the CMD prompt?

Edited by spudw2k
Link to comment
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
 Share

  • Recently Browsing   0 members

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