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

Easily Add Programs to Windows 7 Startup Folders

wmpntwk 100 cpu

Wmpntwk.exe 100% CPU Usage in Windows 7

Remove File Type Associations in Windows 7

Logon Changer executable file

Easily Customize the Logon Screen in Windows 7

Popular Posts This Month

event id

Fix Windows 8 App Opens Then Closes

runas command

5 Windows Alternatives to the Linux sudo Command

5 Utilities for Changing DNS Servers in Windows Reviewed

windows defender

Windows Defender vs. Security Essentials vs Safety Scanner

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