Effortless Admin Access- How to Run CMD as Admin Directly from File Explorer

by liuqiyue

How to Run CMD as Admin from File Explorer

Running commands through the Command Prompt (CMD) as an administrator can be essential for certain tasks that require elevated privileges. Whether you need to install software, modify system settings, or perform other administrative operations, having the ability to run CMD with administrative rights can make your life much easier. In this article, we will guide you through the process of running CMD as admin from the File Explorer, so you can perform these tasks without any hassle.

Step 1: Right-click on the File or Folder

To begin, navigate to the File Explorer and locate the file or folder for which you want to run CMD as an administrator. Once you have found it, right-click on the file or folder to open a context menu.

Step 2: Select ‘Run as administrator’

In the context menu, you will see an option labeled ‘Run as administrator’. Click on this option to open the file or folder with elevated privileges.

Step 3: Confirm the UAC Prompt

When you click on ‘Run as administrator’, the User Account Control (UAC) prompt will appear. This prompt is designed to ensure that you are aware of the elevated privileges you are granting. Click on ‘Yes’ to confirm that you want to proceed.

Step 4: Wait for the Command Prompt to Open

After confirming the UAC prompt, the Command Prompt window will open with administrative privileges. You can now enter commands and perform tasks that require elevated rights.

Alternative Method: Using the Command Prompt Context Menu

If you frequently need to run CMD as admin from the File Explorer, you can create a shortcut to the Command Prompt with administrative privileges. Here’s how to do it:

1. Right-click on an empty space in the File Explorer and select ‘New’ > ‘Shortcut’.
2. In the ‘Create Shortcut’ window, type ‘cmd’ in the ‘Type the location of the item’ field and click ‘Next’.
3. In the ‘Name’ field, enter a name for your shortcut, such as ‘CMD Admin’.
4. Click ‘Finish’ to create the shortcut.
5. Right-click on the newly created shortcut and select ‘Properties’.
6. In the ‘Shortcut’ tab, click on ‘Advanced’.
7. Check the box for ‘Run as administrator’ and click ‘OK’.
8. Click ‘Apply’ and then ‘OK’ to save the changes.

Now, when you double-click on the ‘CMD Admin’ shortcut, the Command Prompt will open with administrative privileges, allowing you to perform tasks that require elevated rights.

Conclusion

Running CMD as admin from the File Explorer is a straightforward process that can save you time and effort when performing administrative tasks. By following the steps outlined in this article, you can easily open the Command Prompt with elevated privileges and perform tasks that require administrative rights.

You may also like