PhejEJ Posted October 27, 2008 Share Posted October 27, 2008 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 More sharing options...
skysel Posted October 27, 2008 Share Posted October 27, 2008 (edited) try this Local $sUserName = "username" Local $sPassword = "password" RunAsWait($sUserName, @LogonDomain, $sPassword, 0, @ComSpec & ' /c C:\Path\to\your\file.exe', @SystemDir, @SW_HIDE) Edited October 27, 2008 by skysel Link to comment Share on other sites More sharing options...
PhejEJ Posted October 27, 2008 Author Share Posted October 27, 2008 (edited) 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 October 27, 2008 by PhejEJ 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