If you frequently use the Command Prompt with administrative privileges, creating a shortcut can save you time and effort. This guide walks you through the steps to set up a shortcut that opens the Command Prompt with admin rights on Windows.
Step 1: Create a Shortcut
- Right-click on the Desktop: Begin by right-clicking on an empty space on your desktop.
- Select New: From the context menu, hover over “New” and then click on “Shortcut.”
Step 2: Enter the Command Prompt Path
In the shortcut creation wizard, you will be prompted to enter the location of the item. For the Command Prompt, input the following path:
C:\Windows\System32\cmd.exe
Click “Next” to proceed.
Step 3: Name Your Shortcut
Now, you need to give your shortcut a name. For simplicity, you might choose to name it “cmd” or any name that helps you identify it easily.
Click “Finish” to create the shortcut.
Step 4: Set Up the Shortcut for Administrative Privileges
- Right-click on the Newly Created Shortcut: Locate the shortcut on your desktop, right-click on it, and select “Properties.”
- Open the Shortcut Tab: In the properties window, ensure you are on the “Shortcut” tab.
- Click on Advanced: In the lower right corner, you will see an “Advanced” button. Click on it.
- Check the Box: In the Advanced Properties window, check the box that says “Run as administrator.”
- Apply the Changes: Click “OK” to close the Advanced Properties window, and then click “Apply” followed by “OK” to close the shortcut properties.
Step 5: Test the Shortcut
Now that you’ve set up the shortcut, double-click on it to test it. You should see a User Account Control (UAC) prompt asking for permission to run Command Prompt with administrative rights. Click “Yes,” and the Command Prompt window will open with admin privileges.
Conclusion
Creating a shortcut for the Command Prompt with administrative rights streamlines your workflow and enhances your productivity. By following these steps, you can easily access the Command Prompt whenever you need it, ensuring you have the necessary permissions for any tasks you wish to perform.