Alexander01
Apr 14 2004, 10:52 PM
I'm looking and looking for this but i still can't find it anywhere

A CMD-prog that runs an other prog under a specific account
Hope someone can help me, many thanks already!
andydis
Apr 14 2004, 11:01 PM
runas (built into windows2k+XP+2k3)
RUNAS USAGE:
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/user:<UserName> program
RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
/smartcard [/user:<UserName>] program
/noprofile specifies that the user's profile should not be loaded.
This causes the application to load more quickly, but
can cause some applications to malfunction.
/profile specifies that the user's profile should be loaded.
This is the default.
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote
access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows XP Home Edition
and will be ignored.
/smartcard use if the credentials are to be supplied from a
smartcard.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples
Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
NOTE: /profile is not compatible with /netonly.
Alexander01
Apr 15 2004, 04:59 AM
sounds good, gonna try it!
sfzhi
Apr 15 2004, 10:25 AM
KieMaN
Apr 15 2004, 11:21 AM
Gonna check it, it looks nice
Flowers
Apr 15 2004, 11:21 AM
Hmmm

very good, didnt know
ind0r
Apr 15 2004, 02:41 PM
really interesting :-) thx
tribalgoa
Apr 15 2004, 03:20 PM
Runas.exe is not scriptable ... you can only supply the pass manually (not in the command line)
for this purpose, you can find runas-x.exe
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.