Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS runas command

Quick links

About runas
Availability
Syntax
Examples

About runas

Enables a user to execute a program on another computer as yourself or as another user.

Availability

The runas.exe command is an external command that is available in the below Microsoft operating systems.

Windows 2000
Windows XP
Windows Vista
Windows 7

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating systems

Resolved

Were you able to locate the answer to your questions?

Syntax

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

/profileif the user's profile needs to be loaded
/envto use current environment instead of user's.
/netonlyuse if the credentials specified are for remote access only.
/user<UserName> should be in form USER@DOMAIN or DOMAIN\USER
programcommand 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.microsoft.com "notepad \"my file.txt\""

NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.

Examples

See Microsoft's above examples for examples of this command.

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope