neo2qwerty Posted August 7, 2013 Share Posted August 7, 2013 Hello, Im stumped on this one. Bellow is the code I'm using. I'm trying to RunAs a temp admin account the setup for office and apply the MSP. When I run this is spits out: Code: ; create local folder DirCreate ("c:softwareOffice2010proplus") ; Copy needed files from DFS DirCopy ("somepath","C:SoftwareOffice2010proplus",1) ; Fill in the username and password appropriate for your system.(na.ipsos computers) Local $sUserName = "SomeUserAccount" Local $sPassword = "SomePassword" ; Run a command prompt as the other user. Local $pid = RunAsWait($sUserName, @ComputerName, $sPassword, 1, "c:softwareOffice2010ProPlussetup.exe /adminfile c:softwareOffice2010ProPlusOffice2010ProPlus.msp", @SystemDir) ; Wait for the process to close. ProcessWaitClose($pid) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 7, 2013 Moderators Share Posted August 7, 2013 And you have confirmed that the account you're using for the RunAs has access to that location? Also, you've confirmed the location has the .msp? The error you're getting is from the setup application, so it doesn't look necessarily like the script is wrong - looks like either a wrong path or one the account has no access to. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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