I have encountered this issue. You maybe know the free utility AutoIT for
runas an executable with different credentials.
When i'm logged into xp desktop with an account that has admin rights and manually launch the Autoit
executable that executes the following AutoIT script
#NoTrayIcon ;~ If Windows Vista/7 will prompt with UAC #RequireAdmin ;~ User Variables $USR_USERNAME = 'Administrator' $USR_PASSWORD = 'Password' ;~ Package Variable $PKG_FILENAME = @TempDir & '\Package.exe' ;~ Note: Package.exe should be in the same location as the .au3 Script when compiling ;~ This Packs Package.exe into the Script Executable ;~ When the Script Executable is run it unpacks Package.exe to %Temp%\Package.exe FileInstall('Package.exe', $EXE_PACKAGE) ;~ This runs the executable using the User Variables above ;~ Change /SilentSwitches with your own RunAsWait($USR_USERNAME, @ComputerName, $USR_PASSWORD, 0, $PKG_FILENAME & ' /silentswitches', '', @SW_HIDE) ;~ After the script has completed, delete %Temp%\Package.exe FileDelete($PKG_FILENAME)
The installation works fine.
When I try to launch the compiled .exe then (it is supposed to pass the local administrator credentials) it prompts for user/password with rights to proceed with the installation.
Does anyone knows what is wrong here?
Thanks to all