Jump to content

Recommended Posts

Posted (edited)

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

Edited by instabin
Posted (edited)

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
Posted

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.

  • 1 month later...
Posted

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.

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
×
×
  • Create New...