Jump to content
Sign in to follow this  
Ozi

Run Script as SYSTEM

Recommended Posts

Ozi

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
Ozi

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
wolf9228

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
wolf9228

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
DjDeep00

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
Ozi

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
evilertoaster

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

http://technet.microsoft.com/en-us/library/aa997272.aspx

http://www.tech-recipes.com/windows_tips1288.html

Edited by evilertoaster

Share this post


Link to post
Share on other sites
DjDeep00

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
Ozi

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  

×