Sign in to follow this  
Followers 0
MAC2979

Runas with admin rights

1 post in this topic

$Account = "account"

$Domain = "domainname"

$Password = "password"

$RunCommand = "IE7-Setup.exe /passive"

RunAs($Account, $Domain, $Password, 2, $RunCommand)

I'm trying to use the Runas command to install some software. This actually starts the extraction process but stops when it gets to actually running the install. When trying to run this I'm logged in as a domain user that isn't an administrator, the account I'm passing is a domain admin so has the rights to install, but its not doing so.

Any ideas what I'm doing wrong?

Thanks

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  
Followers 0