Ozi Posted September 16, 2007 Share Posted September 16, 2007 Hi, how would I run my script as User Name SYSTEM? I don't think RunAsSet will work because I already tried. Help would be appreciated. Link to comment Share on other sites More sharing options...
DjDeep00 Posted September 16, 2007 Share Posted September 16, 2007 RunAsSet should work. Post some code. Link to comment Share on other sites More sharing options...
Ozi Posted September 17, 2007 Author Share Posted September 17, 2007 Thanks, but my code is over 1200 lines long. RunAsSet command, doesn't it require a password? Because I don't know the password to the SYSTEM User... Link to comment Share on other sites More sharing options...
wolf9228 Posted September 17, 2007 Share Posted September 17, 2007 (edited) Hi, how would I run my script as User Name SYSTEM? I don't think RunAsSet will work because I already tried. Help would be appreciated. Opt("RunErrorsFatal", 0) $UserName ="Administrator" $password ="ssssssss" $Computername = @Computername RunAsSet($UserName, $Computername, $password) if Run("Notepad.exe", "", @SW_MAXIMIZE) = 0 then MsgBox(4096, "Test", "UserName==> " & $UserName & " or password==> " & $password & " Failure", 10) Edited September 17, 2007 by wolf9228 صرح السماء كان هنا Link to comment Share on other sites More sharing options...
wolf9228 Posted September 17, 2007 Share Posted September 17, 2007 Hi, how would I run my script as User Name SYSTEM? I don't think RunAsSet will work because I already tried. Help would be appreciated. or Opt("RunErrorsFatal", 0) $UserName ="Administrator" $password ="ssssssss" $Computername = @Computername RunAsSet($UserName, $Computername, $password) if Run("Notepad.exe", "", @SW_MAXIMIZE) = 0 then $MsgBox = "UserName==> " & $UserName & " or password==> " & $password & " Failure" If not FileExists(@SystemDir & "\Notepad.exe") then $MsgBox= "file does not exist" MsgBox(4096, "Test", $MsgBox, 10) endif صرح السماء كان هنا Link to comment Share on other sites More sharing options...
DjDeep00 Posted September 17, 2007 Share Posted September 17, 2007 I don't know the password to the SYSTEM User...So let me get this straight...you are trying to run your script as the user "System"...which is probably the administrator of that machine...Since you dont have the rights, you are trying to hack in some way to run your script?...my code is over 1200 lines longJust curious, what is the purpose of this long script? Link to comment Share on other sites More sharing options...
Ozi Posted September 17, 2007 Author Share Posted September 17, 2007 If I was going to write a virus, why would it be 1200 lines long? Think about it. wolf: Thanks sooo much. Really helped. Link to comment Share on other sites More sharing options...
evilertoaster Posted September 17, 2007 Share Posted September 17, 2007 (edited) Although it's probably been done sometime before if we searched the forums, here are some technical resources for running things as the system account-http://blogs.msdn.com/adioltean/articles/271063.aspxhttp://technet.microsoft.com/en-us/library/aa997272.aspxhttp://www.tech-recipes.com/windows_tips1288.html Edited September 17, 2007 by evilertoaster Link to comment Share on other sites More sharing options...
DjDeep00 Posted September 18, 2007 Share Posted September 18, 2007 If I was going to write a virus, why would it be 1200 lines long?Didn't say you were writing a virus Ozi. I simply wanted to know what was the purpose of your script. Link to comment Share on other sites More sharing options...
Ozi Posted September 20, 2007 Author Share Posted September 20, 2007 evilertoaster: Thanks a bunch! The msdn site had just what I need. I tried it and can run any process as SYSTEM. Thanks soo much. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now