
Originally Posted by
dtakias
IS there a way to run an executable always under the administrator account? If yes how to do it. As the program is on the startup folder I need it to be able to run as administrator under every account...
You can use a script for that - AutoIT has the RunAsSet function:
Code:
If Not IsAdmin() Then
RunAsSet('USER', @Computername, 'PASSWORD')
Run('"' & @AutoItExe & '"' & ' "' & @ScriptFullPath & '"', @WorkingDir)
Exit
EndIf
MsgBox(0, 'Message', 'Now running with admin rights.')