Windows XP Pocket Reference

Run As \ windows \system32\runas.exe

Use Run As to open an application in another user 's context, which means that the settings and privileges imposed upon an application are those associated with the specified account. This is especially useful when running services or other background applications, where you can't always assume which user will be logged on at any time, but you want to make sure the settings and permissions are correct. Run As takes the following parameters:

runas [/noprofile] [/env] [/netonly] /user: username program

Option

Description

program

The full path and filename of the .exe file to run.

/user: username

The user name of the form user@domain or domain\user.

/noprofile

Don't load the user's profile (in HKEY_CURRENT_USER).

/env

Uses the current environment space instead of username's.

/netonly

Specifies that specified credentials are for remote access only.

TIP

The Scheduled Tasks feature also lets you run applications under a different user account.

Категории