Jump to content

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?

Thanks

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...