Jump to content
Sign in to follow this  

Runas with admin rights

Recommended Posts


$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?


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