Search the Community
Showing results for tags 'SP3'.
Found 1 result
I am having problems getting a script to run with admin rights. I have 3 different passwords due to different computers not receiving network updates/pushes to have admin password updated to one consistant. Everytime I run the script it does nothing and exits, so i put in some msgbox's to find out what is going on, and the return with "0" on all three. I have Windows SP3 on the computer and have read in other post that people are thinking that it is causing problems, I am not even able to get one run much less the 32 that they get before it quits working. I have changed the user name and passwords for this forum due to security reasons, any help would be appreciated. If $CmdLine > 0 Then If $CmdLine = "/UpdateOffice" Then UpdateOffice() Exit EndIf Local $user = "admin" Local $pass = "password" Local $pass2 = "password2" Local $pass3 = "password3" If IsAdmin () = 0 Then $run1 = RunAs ( $user, @ComputerName, $pass, 0,@ScriptFullPath & " /UpdateOffice") MsgBox (0,"",$run1) If $run1 = 0 Then $run2 = RunAs( $user, @ComputerName, $pass2, 0,@ScriptFullPath & " /UpdateOffice") MsgBox (0,"",$run2) If $run2 = 0 Then $run3 = RunAs ( $user, @ComputerName, $pass3, 0,@ScriptFullPath & " /UpdateOffice") MsgBox (0,"",$run3) If $run3 = 0 Then MsgBox (0,"",$run3) Exit EndIf EndIf EndIf EndIf UpdateOffice() UpdateOffice is calling the function with a gui that I built. I can attach it if I need but I seen the above being the problem. thanks, Damon