A laptop

How to Add an Open Command Window Option to Windows 11’s Context Menu

Do you miss the “possibility command window right here” possibility in your context menu? Don’t be concerned, there are methods to deliver it again.

A laptop

The Command Immediate was Home windows’ default command-line interpreter for opening folders and recordsdata. PowerShell has steadily eclipsed it. Nonetheless, many customers who’re extra conversant in Command Immediate’s command set nonetheless choose to make the most of that interpreter over PowerShell.

As Command Immediate isn’t the first command-line interpreter anymore, the “open command window right here” possibility has disappeared from the context menu in Home windows 11 and 10. That possibility enabled customers to open directories within the Command Immediate by right-clicking their folders from File Explorer. That is how one can restore that possibility on Home windows 11’s context menu.

Learn how to Restore the Open Command Window Choice With a Registry Script

To revive the Open command window right here possibility on the context menu, you’ll want to use a registry tweak a method or one other. As a substitute of manually modifying the registry your self, you’ll be able to arrange a registry script file to do it. These are the steps for organising a REG script file that restores the lacking Open command window possibility.

  1. Press the Home windows search button (magnifying glass icon) on the taskbar.
  2. Kind Notepad within the search device, and choose to open that app.
  3. Copy this registry script code textual content with the Ctrl + C keyboard shortcut:
    Home windows Registry Editor Model 5.00

    @="Open command immediate right here as administrator"

    @="PowerShell -windowstyle hidden -Command "Begin-Course of cmd.exe -ArgumentList '/s,/ok,pushd,%V' -Verb RunAs""

    @="Open command immediate right here as administrator"

    @="PowerShell -windowstyle hidden -Command "Begin-Course of cmd.exe -ArgumentList '/s,/ok,pushd,%V' -Verb RunAs""

    @="Open command immediate right here as administrator"

    @="PowerShell -windowstyle hidden -Command "Begin-Course of cmd.exe -ArgumentList '/s,/ok,pushd,%V' -Verb RunAs""

    @="Open command immediate right here as administrator"


  4. Click on inside Notepad and press the Ctrl + V key mixture to stick the copied script code into the textual content editor.
    The registry script

  5. Then choose File > Save as in Notepad.
  6. Choose the All Recordsdata possibility on the Save as kind drop-down menu.
    The All Files option

  7. Enter Open command window (Admin).reg within the File identify textual content field.
  8. Choose Desktop on the left aspect of the Save as window.
  9. Click on Save on the window.
  10. Shut the Notepad app, and double-click the Open command window.reg file on the desktop.
    A registry script file

  11. Choose Sure on the Registry Editor immediate, and click on the OK button.


Now you’ll be able to choose a brand new Open Command Immediate right here possibility on the context menu. Proper-click a folder in File Explorer and choose Present extra choices. Choose the Open Command Immediate right here as administrator choice to open the folder’s listing inside a Command Immediate window.

The Open Command Prompt here as administrator option

You possibly can take away that possibility from the menu anytime by deleting the registry key for it. To take action, you’ll must open the Registry Editor first. Press the Home windows + R hotkey, kind regedit within the Open field, and choose OK.

Subsequent, go to the ComputerHKEY_CLASSES_ROOTDirectoryshell key location within the Registry Editor. Proper-click the OpenElevatedCmd registry key and choose Delete. Click on Sure when prompted to substantiate.

The Delete option

Learn additionally: What Is the Home windows Registry and How Do I Edit It?

Learn how to Restore the Open Command Window Choice With Winaero Tweaker

The freeware Winaero Tweaker desktop app gives an alternate approach to restore an Open command window context menu possibility. That software program features a Command Immediate as Administrator possibility you’ll be able to choose so as to add an Open command window shortcut for folders to the right-click menu. That is how you can set up Winaero Tweaker and choose that possibility.

  1. Open the homepage for Winaero Tweaker.
  2. Click on the Obtain Winaero Tweaker hyperlink there.
  3. Press the Home windows and E keys concurrently, and open the folder during which you saved Winaero Tweaker’s ZIP file.
  4. Double-click the Winaero Tweaker ZIP archive, and choose Explorer’s Extract all possibility.
    File Explorer's Extract all option

  5. Choose Present extracted recordsdata when full on the Extract Compressed (Zipped) Folders window.
  6. Click on Extract to deliver up an extracted folder for Winaero Tweaker.

  7. Double-click WinaeroTweaker- to open the installer, and click on the Subsequent button.
  8. Choose the Regular mode, I settle for the settlement, and Create a desktop icon choices inside Winaero Tweaker’s setup window. Then click on the Set up button.

  9. Double-click Winaero Tweaker’s desktop shortcut.
  10. Develop the Context Menu class in Winaero Tweaker.
  11. Click on the Command Immediate as Administrator possibility.
  12. Then choose the Add elevated Command Immediate to the context menu checkbox.
    The Open in Windows Terminal option

  13. Erase the textual content within the Context menu entry title field. Then enter Open command window right here in that textual content field.
  14. Press the Apply Modifications button, and shut Winaero Tweaker.

Try the brand new context menu possibility by right-clicking a folder and choosing Present extra choices. Or you’ll be able to choose a folder and press the Shift + F10 hotkey. Deciding on Open command window right here on the traditional context menu will open a folder’s listing in an elevated Command Immediate just like the one utilized with the registry script.

Learn how to Configure the Open in Home windows Terminal Choice to Open With Command Immediate

Home windows 11’s context menu contains an Open in Home windows Terminal possibility that opens a folder listing inside the Terminal’s default command-line interpreter. PowerShell is the default Home windows Terminal interpreter, however you’ll be able to change that to Command Immediate. Then a folder’s listing will open in a Command Immediate tab each time you choose Open in Home windows Terminal.

  1. Proper-click Begin on the taskbar to pick out and open Home windows Terminal.
  2. Click on the Open a brand new tab (arrow) button to pick out Settings.
    The Open a new tab menu

  3. Choose Command Immediate on the Default profile drop-down menu.
  4. Press the Save button on the backside proper of the Settings tab.
    The Default profile drop-down menu

  5. Click on the Shut button on the prime proper of Home windows Terminal.

Strive choosing the Open in Home windows Terminal possibility by right-clicking a folder. The Home windows Terminal will now open with a Command Immediate tab when you choose that possibility. If you happen to choose the Command Immediate to open with a separate administrator window, nonetheless, you’ll want so as to add a brand new choice to the context menu as outlined for the earlier two strategies.

The Open in Windows Terminal option

Learn additionally: Learn how to Open the Home windows Terminal in Home windows 11

The Open Command Window Right here Choice Is a Handy Command Immediate Shortcut

The Open command window right here context menu possibility is a helpful shortcut for all Command Immediate customers. Having that possibility on the right-click menu will prevent needing to manually open folders within the Immediate with the change listing (CD) command. So, it’s value restoring that possibility in Home windows 11 in case you usually make the most of the Command Immediate.

woman working on windows laptop
Learn how to Open the Command Immediate in Home windows 11

Study all of the alternative ways to open the Command Immediate in Home windows 11.

Learn Subsequent

About The Writer

Leave a Comment

Your email address will not be published. Required fields are marked *