Jump to content

RUNas not working


PhejEJ
 Share

Recommended Posts

can anyone tell me what i did wrong here? it doesnt seems to run the apps.

; Fill in the username and password appropriate for your system.

Local $sUserName = "adminname"

Local $sPassword = "somepass"

; Run a command prompt as the other user.

RunAs($sUserName, @ComputerName, $sPassword, 0, "iTunes 4.2.EXE", "\\pp00123\install$\Apps\restricted\WXP\iTunes_4_2\")

thanks in advance.

Link to comment
Share on other sites

thanks but still dont work. anyone else could help?

Local $sUserName = "username"
Local $sPassword = "pass"
RunAsWait($sUserName, @LogonDomain, $sPassword, 0, @ComSpec & '\\server\path$\Apps\install\WXP\iTunes_4_2\iTunes 4.2.EXE', @SystemDir, @SW_HIDE)oÝ÷ Ù©l¢Úò¶¬¶,)evíÂäjëh×6Local $sUserName = "username"
Local $sPassword = "pass"
RunAsWait($sUserName, @LogonDomain, $sPassword, 0, @ComSpec & ' /c \\server\path$\Apps\install\WXP\iTunes_4_2\iTunes 4.2.EXE', @SystemDir, @SW_HIDE)
Edited by PhejEJ
Link to comment
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
 Share

  • Recently Browsing   0 members

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