Can i use the command " run as " in dos mode ?

  • Thread starter Thread starter AC @ Loneliness is tragical / _ \\
  • Start date Start date
A

AC @ Loneliness is tragical / _ \\

i got almost 400 PCs under a domain, most of them are running without Admin
right
any method can let them run a removal tools which provide by Symantec in a
multiple solution ?

sorry about my poor english and thanks in advanced
 
Simple Answer yes you can

type runas at the cmd line provides this information

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:[email protected] "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.

You could also specify the tool you want to run in a computer startup script
or in a login script and apply this to the computers via a Group Policy
Object.


HTH
rgds
Steve
 
Thanks a lot ^^
i have already tried Run as in dos mode for thousand times.....
silly me that it's runas, not run as =P

--
Sadness is beatiful, Loneliness is tragical......
Steve said:
Simple Answer yes you can

type runas at the cmd line provides this information

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:[email protected] "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.

You could also specify the tool you want to run in a computer startup script
or in a login script and apply this to the computers via a Group Policy
Object.


HTH
rgds
Steve
 
If it is any consolation it's caught me out a few times too
Rgds
Steve



AC @ Loneliness is tragical / _ \ said:
Thanks a lot ^^
i have already tried Run as in dos mode for thousand times.....
silly me that it's runas, not run as =P

--
Sadness is beatiful, Loneliness is tragical......
Steve said:
Simple Answer yes you can

type runas at the cmd line provides this information

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:[email protected] "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.

You could also specify the tool you want to run in a computer startup script
or in a login script and apply this to the computers via a Group Policy
Object.


HTH
rgds
Steve













i got almost 400 PCs under a domain, most of them are running without Admin
right
any method can let them run a removal tools which provide by Symantec
in
 
Back
Top