Microsoft KB Archive/325859

= How to enable and use the &quot;Run As&quot; feature in Windows Server 2003 =

Article ID: 325859

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



This article was previously published under Q325859



For a Microsoft Windows XP version of this article, see 294676.

IN THIS TASK
SUMMARY
 * Enable the Secondary Logon Service
 * Use Run As to Start a Program as Another User
 * Troubleshooting

REFERENCES



SUMMARY
This step-by-step article describes how to enable and use the &quot;Run as&quot; feature in Windows Server 2003.

You can use the &quot;Run as&quot; feature to run a program, MMC console, or Control Panel tool by using the credentials of a user other than the currently-logged on user. This makes it possible for a user with multiple accounts to run a program as a different user. For example, you can use the &quot;Run as&quot; feature to start a program as an administrator if you want to perform administrative tasks when you are logged on as a member of another group, such as the Users or Power Users group.

To use the &quot;Run as&quot; feature, the Secondary Logon service must be running.

back to the top

Enable the Secondary Logon Service
By default, the Secondary Logon service starts automatically when you start Windows. However, an administrator can disable the service. To enable the service if it is disabled:
 * 1) Log on as Administrator or as a member of the Administrators group.
 * 2) Click Start, point to Administrative Tools, and then click Computer Management.
 * 3) Expand Services and Applications, and then click Services.
 * 4) In the right pane, right-click Secondary Logon, and then click Properties.
 * 5) Click the General tab.
 * 6) In the Startup type box, click Automatic, and then click Start under Service status.
 * 7) Click OK, and then close the Computer Management window.

back to the top

Use Run As to Start a Program as Another User
To use the &quot;Run as&quot; feature to start a program as another user:
 * 1) Locate the program that you want to start in Windows Explorer, the Microsoft Management Console (MMC), or Control Panel.
 * 2) Press and hold down the SHIFT key while you right-click the .exe file or icon for the program, and then click Run as.
 * 3) Click The following user.
 * 4) In the User name and Password boxes, type the user name and password of the user whose credentials you want to use to run the program, and then click OK.

NOTE: You can also use the runas command from a command prompt. For more information, click Start, and then click Run. In the Open box, type cmd, and then click OK. At the command prompt, type runas /? , and then press ENTER.

back to the top

Troubleshooting

 * Some programs may not support the use of the runas command.
 * The runas command does not function correctly when you run it by using the LocalSystem account.
 * You may not be able to start a program, MMC console, or Control Panel tool from a network location by using the &quot;Run as&quot; feature if the credentials you use to connect to the network share are different from the credentials you use to start the program. The credentials that are used to run the program may not be able to gain access to the same network share.

back to the top

