The Command Prompt, Is a powerful utility that's native to the Windows platform and Is used to perform a variety of tasks, such as create files & folders, manipulate local user accounts, format disks and the list goes on. In order to carry out some tasks, It must be executed with elevated privileges, otherwise errors will be returned. In this tutorial, I will show you how to always run the command prompt shortcut as an administrator.
If you're anything like myself and heavily use the Command Prompt on a daily basis to query & execute critical tasks, you'd know that In most cases, It must be done with administrative privileges. Sure, you can simply right-click It and select Run as administrator, but when you're doing this for hours on end, Is does become a somewhat tedious task
To simplify this, I will demonstrate how to set the Command Prompt shortcut to always run as administrator. As such, you're ready to go with tasks that require elevated privileges. So without further delay, let's rip Into this tutorial.
Firstly, here's how the standard Command Prompt operates. Open the Search bar, enter cmd and click Command Prompt at the top.
It will now run In the user profile directory, which Is Identified by C:\Users. This means that you will not be able to run commands, or access files that require admin privileges.
Let's set It to always run as administrator. Open the Search bar again and enter cmd. On the search result at the top, right-click It and select Open file location.
Next, right-click the shortcut, and hit Properties as arrowed below.
To the right of the window, simply click the Advanced button.
Now click the Run as administrator checkbox, then hit OK within that window and to finalize the process, hit OK again as shown below.
Every time the shortcut Is accessed In Step Four above, It will run as administrator. Let's test It again, by opening the Search bar, entering cmd and clicking on the Command Prompt entry at the top.
As you can see, the elevated Command Prompt has executed In the System32 directory. This means that you can now run tasks, programs or access files that require admin privileges.
To make things easier, copy & paste the shortcut to your computer's desktop as shown below. Every time It's double-clicked, It will open with admin rights In the System32 directory.
As opposed to always right-clicking the Command Prompt and selecting the Run as administrator option each and every time, you can now simply do It with a click of the mouse, or should I say, a double-click of the mouse! It only takes a couple of minutes or so to apply this tutorial, so It's certainly worthy of It's purpose.