Win OS – File Explorer – “Open Command Window Here”

Background

A good friend is to trying to following instructions, but running into head wind.

Issue

The Instructions read :-

  1. Launch File Explorer.
  2. Navigate to a specific folder
  3. Right click on that folder and from the dropdown menu, select “Open command window here

Image

Explanation

In our case “Open Command Window here” does not appear.

Instructions

Found Instructions here

Ramesh Srinivasan
Winhelponline.com
Get back “Open command window here” context menu option in Windows 10
Link

TroubleShooting

Outline

  1. Access Registry
    • Access the HKEY_CLASSES_ROOT\Drive\shell branch
      • Confirm that cmdprompt node is not present

Image

shell.01.20191104.0235PM.PNG

Processing

Outline

  1. Prepare registry file
  2. Import registry file

Registry

Launch a text editor.

Copy the registry text pasted below and save the file.

In our case, we saved the file as openCommandShellHere.reg.

Text


Windows Registry Editor Version 5.00
;Ramesh Srinivasan
;Get back “Open command window here” context menu option in Windows 10
;https://www.winhelponline.com/blog/cmd-here-windows-10-context-menu-add/

[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Drive\shell\cmdprompt]
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Drive\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""

Command


reg import openCommandShellHere.reg

Validate

Registry

Image

Here is the post import view of HKEY_CLASSES_ROOT\Directory\shell registry branch.

shell.02.20191104.0328PM.PNG

Windows Explorer

Launch Windows Explorer.

Right click on an entry and see if “Open command window here” appears.

Requirement

Here are the requirements :-

  1. Security
    • Local Administrator Group Access

Operating System ( OS)

Targeted OS :-

  1. Windows 2016
    • Windows Server 2016

Dedicated

Dedicated to Ramesh Srinivasan.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s