When should I log on using the Administrator account?

John Savill

November 30, 2003

2 Min Read
ITPro Today logo in a gray background | ITPro Today

A. A security best practice dictates that you shouldn't use the Administrator account to perform everyday tasks because of the risks associated with accidentally introducing problems as a result of using elevated privileges. To steer clear of such problems, you should create a regular user account for day-to-day use. Then, when you need to perform a task that requires local or domain administrative privileges, use the Runas command to perform such tasks. This command restricts the administrative abilities to the task that you're performing. For example, to open a command prompt with local administrative privileges, enter the command

runas /user:administrator cmd

To open a command prompt with domain administrative privileges, enter the command

runas /user:administrator@ cmd

Be aware that you can use the NetBIOS naming format with this command. For example, to open a command prompt with domain administrative privileges on my network, I typed

runas /user:savilltechadministrator cmd

Any commands that you enter at the new command prompt will run as the user entered in the Runas command with that user's associated privileges.

You can replace "cmd" with any command. For example, to start the Microsoft Management Console (MMC) Computer Management snap-in, type

runas /user: "mmc %windir%system32compmgmt.msc"

To start the MMC Active Directory Users and Computers snap-in, type

runas /user: "mmc %windir%system32dsa.msc"

For example, to open this snap-in on my computer, I typed

runas /user:[email protected] "mmc %windir%system32dsa.msc"

Be aware that if you run the Runas command on a client computer (e.g., running Windows XP or Windows 2000 Professional Edition), the command will fail unless you've installed the administration tools. Although using the Runas command is slightly more work, you can create shortcuts for each command that you routinely run and make your system much safer. If you experience problems, ensure the Secondary Logon service is running--the Runas command requires this service for operation.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like