i need to run a program whilst a user is logged on who is not a local administartor.
I need to pass parameters to this program
EG : How can I run C:\Windows\System32\program.exe u as local adminisatrator
I need to compile the script as an .exe, note there are spaces in the above command also.
I have searched through help and looked at using cmdline but this doesnt work. If I run a program for example C:\Windows\System32\calc.exe with no arguments it runs fine but as soon as i want to
Example()
Func Example()
; Change the username and password to the appropriate values for your system.
Local $sUserName = "admin"
Local $sPassword = "anypassword"
Local $iPID = RunAs($sUserName, @ComputerName, $sPassword, 0,'bitlockerwizard.elev "\ u"', "", @SW_SHOWMAXIMIZED)
sleep(2000)
ProcessClose($iPID)
EndFunc ;==>Example
EDIT: Didn't see Jos' reply, this is the same thing