Indiana University
University Information Technology Services
  
What are archived documents?

In Windows 2000 and XP, what is the Secondary Logon service?

Windows 2000 and XP offer a Secondary Logon service (also known as "run as") that lets you run programs as different users. This tool is helpful in applying the principle of least privilege. For example, you can log into your computer as a normal user, and when you need to have administrative privileges to carry out a task, you can launch that program using the Secondary Logon service to select an administrative account.

There are a couple of ways you can use the Secondary Logon service:

  • Navigate to the program you'd like to launch with different privileges. Click it once to select it, then hold down the Shift key and right-click the program. You'll see a contextual menu from which you can select Run as... and then choose a different account.

  • From the Start menu, select Run... , and enter the following command: runas /user:username cmd

    Replace username with the name of the account you want to use. You can replace cmd with any command you'd like to run (if it contains spaces between characters, enclose it in double quotes). Click OK. When prompted, enter the password for the account you've chosen. This method will start a new command shell in a new session, from which you can launch programs.

For more information about the Windows Secondary Logon service, see articles 225035 and 305780 in the Microsoft knowledge base.

You can search Microsoft's knowledge base at:

http://support.microsoft.com/default.aspx

Also see:

This is document amsq in domain all.
Last modified on May 29, 2008.
Please tell us, did you find the answer to your question?