Jump to content

Recommended Posts

Posted

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

Posted

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

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

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

 

Posted

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

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

 

Posted

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?

Posted

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

wolf: Thanks sooo much. Really helped.

Posted

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

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...