Sign in to follow this  
Followers 0
Ozi

Run Script as SYSTEM

10 posts in this topic

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. :)

Share this post


Link to post
Share on other sites



RunAsSet should work. Post some code.

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by wolf9228

صرح السماء كان هنا

 

Share this post


Link to post
Share on other sites

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

صرح السماء كان هنا

 

Share this post


Link to post
Share on other sites

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 long

Just curious, what is the purpose of this long script?

Share this post


Link to post
Share on other sites

If I was going to write a virus, why would it be 1200 lines long? Think about it.

wolf: Thanks sooo much. Really helped.

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0