Sign in to follow this  
Followers 0
instabin

RunAs + Defualt user netowrk drives

6 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



#2 ·  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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

I have tried searching the forms but have not found anything to help me.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

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