runas

from Wikipedia, the free encyclopedia

runas is a Windows command from Windows 2000 . It is used to execute a command under the identity of another user - not that of the logged in user. The command is comparable to the su command for Unix derivatives .

application

The command can be used to carry out administration or administration tasks without a user with administration rights having to log in from scratch. It can therefore also be used for test purposes.

For security reasons, computers that are connected to the Internet should normally not be logged in as a user with administration rights. Viruses or Trojans could already be downloaded when visiting certain Internet pages . If you are logged in with administrator rights, this has more serious consequences than if you are logged in as a normal user or main user.

syntax

RUNAS syntax:

RUNAS [[/ noprofile | / profile] [/ env] [/ savecred | / netonly]] / user: <user name> program

/ noprofile Specifies that the user profile should not be loaded. Makes the application load faster.

/ profile Specifies that the user profile should be loaded (default setting).

/ env Use the current environment of the user executing the command instead of the user under which the application is started.

/ savecred Saves and uses these credentials the next time it is called (not available under Windows Home Editions and is ignored).

/ netonly If credentials are only required for remote access.

/ user <user name>, must be specified in the form user @ domain or domain \ user.

Program command line of an executable file. See examples below.

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 \ ""

Run as ...

Certain file types (.exe, .msc) can also be started in Windows Explorer with the rights of another user. This is possible by pressing the shift key and the right mouse button; the selection "Run as ..." appears in the context menu.

Web links