Jump to content

RunAs + Defualt user netowrk drives


instabin
 Share

Recommended Posts

I'm trying to run a program that need to be run as administrator but I can figure out how to keep the users network drives after the autoit executes the runas command.

I have tried the flags 1 - 4

Maybe you can use the forum search engine ? (like set privilege keywords)

Cheers, FireFox.

Edited by FireFox
Link to comment
Share on other sites

you can't keep the network drives as the command is executed as a different user with his own user profile and his own drives. either run the application directly from the network share or copy it over to a temporary directory. you can test that in explorer.

Link to comment
Share on other sites

  • 1 month later...

or add the global group "Admins of domain" in the local group "Administrators" of the PC. You'll have all the rights on the PC and on the network drives with an user belonging to the global group "Admins of domain".

It is possible to do it with AutoIt (it works at least with XP SP2).

Be careful. If a .exe is started with a RUNAS, and if this .exe starts an other .exe without giving heritage of rights, the second .exe will say that it needs administrator rights.

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