When you run Command Prompt on Windows, it runs in user mode by default and does not have administrator rights. If you need to run commands as administrator from your user account, you need to run Command Prompt as administrator.
An easy way to access the command line as an administrator is to create a shortcut to the command line and configure it to run as administrator.
Create an administrator command prompt shortcut
To create this shortcut, right-click on the desktop and select New | A shortcut from a pop-up menu.
In the Create Shortcut dialog box, enter the following text in the Enter Item Location input box and click Next.
C: Windows System32 cmd.exe
– /
Enter a name for the shortcut, such as cmd, in the Enter a name for this shortcut edit box and click Finish.
A shortcut is added to the desktop. Right-click the shortcut and choose Properties from the pop-up menu.
In the Properties dialog box, make sure the Shortcut tab is active and click the Advanced button.
The “Additional Properties” dialog box appears. Select the “Run as administrator” checkbox to enable this option and click “OK.”
If you double-click a new shortcut to open a Command Prompt as an administrator, the following dialog box may appear, warning you about starting a program that will make changes to your computer. Click Yes to continue opening the request.
You will receive this message every time you try to run the program because it is being promoted. If you don’t need the UAC prompt, you can either disable UAC entirely, which I do not recommend, or disable UAC for one specific application using a third party tool.
The command window opens with administrator rights, as shown in the window’s title bar.
NOTE. Any commands running in this command window will make changes to your computer as an administrator, so be careful when running in this window. Enjoy!
–