My Autoit file runs under system credentials (i believe) , after a windows deployment using setupcomplete.cmd
And because of that a program i try to install wont install.
What i like to do is create a small autoit3 script that looks like below:
$sPassword = "mypassword"
RunAsWait("Administrator",@ComputerName,$sPassword,0,"c:\Program Files (x86)\AutoIt3\AutoIt3.exe C:\Windows\Setup\Scripts\Configuremyapp.au3",$working)
So i would like to launch another autoit session running under different credentials, but how to do that ?
Since C:\program files (x86) contains a space ?.
And what about the working dir , what should that be?