Jump to content
Compatible Support Forums
Sign in to follow this  
String

"Run As"

Recommended Posts

Slightly off topic but does the "run as" dialog box ONLY work for files called setup.exe or can i invoke it manually.

Wondering as i never log is as admin and like to install stuff without relogging it (win2k lacks proper SU command)

 

If "run as" can be invoked manually id appreciate someone telling me how

Share this post


Link to post

You can use the runas command in command prompt.

 

--

RSR

 

 

C:\>runas

RUNAS USAGE:

 

RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

 

/profile if the user's profile needs to be loaded

/env to use current environment instead of user's.

/netonly use if the credentials specified are for remote access only.

/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER

program command line for EXE. See below for examples

 

Examples:

> runas /profile /user:mymachine\administrator cmd

> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"

> runas /env /user:user@domain.mycompany.com "notepad \"my file.txt\""

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×