Create a Command Prompt Shortcut with Admin Rights

When you run a command prompt in Windows 7, it runs in user mode by default and does not have any administrator rights. If you need to execute commands as administrator from your user account, then you need to run the command prompt with administrator privileges.

An easy way to have access to the command prompt as administrator is to create a shortcut to the command prompt, and set it to run as administrator.

To create this shortcut, right-click on the desktop and select New | Shortcut from the pop-up menu.

Creating a new shortcut

On the Create Shortcut dialog box, enter the following text into the Type the location of the item edit box and click Next.

C:\Windows\System32\cmd.exe

Entering the location for the cmd shortcut

Enter a name for the shortcut, such as cmd, in the Type a name for this shortcut edit box and click Finish.

Entering a name for the cmd shortcut

The shortcut is added to the desktop. Right-click on the shortcut and select Properties from the pop-up menu.

Getting the properties of the cmd shortcut

On the Properties dialog box, make sure the Shortcut tab is active and click the Advanced button.

Properties dialog box for the cmd shortcut

The Advanced Properties dialog box displays. Click the Run as administrator check box to turn on that option and click OK.

Advanced Properties of the cmd shortcut

When you double-click on the new shortcut to open a command prompt with administrator privileges, the following dialog box may display, warning you about running a program that will make changes to your computer. To continue opening the prompt, click Yes.

User Account Control warning

The command window opens with administrator rights, as shown in the title bar of the window.

Command prompt with administrator rights

NOTE: Any commands run in this command window will make changes to your computer as administrator, so be careful what you run in this window.

by Lori Kaufman

More posts from the Windows 7 Category

How to Customize Auto-Play in Vista and Windows 7

Disable Aero Snap in Windows 7

Assign Drive Letters to Folders in Windows

Add a Virtual Hard Disk to a Windows XP Mode Virtual Machine

Popular Posts This Month

windows defender

Windows Defender vs. Security Essentials vs Safety Scanner

youtube ie11 freezing

How To Fix Flash Crashes in Internet Explorer 11

bitlocker error

Fix “This device can’t use a Trusted Platform Module” When Enabling BitLocker

Comments [1]

  1. [...] about creating a shortcut to run a command prompt window with administrator rights in our post, Create a Command Prompt Shortcut with Admin Rights. If you need to run a program that requires administrator rights, there are several methods for [...]

Leave a Reply