Restore Open Command Window Here to Windows 10

Microsoft has made some rather evil changes to Windows 10 – not the least of which was disabling references to the command window / command prompt. Super nice feature they added by default was the ability to open a command window in the current folder. Then they screwed it up by replacing it with PowerShell.

PowerShell has it’s place, but it’s no replacement for cmd.exe.

So, you may have looked into the steps to fix it and felt a little dirty – you have to take ownership and fool with ACLs in the registry…

Also you may have found that it is not possible to get the command prompt back in the windows explorer ribbon file menu.

How about no and no.

Download this utility and run it – it requires admin privileges (unfortunately unavoidable). Windows SmartScreen will likely try to block the app as unrecognized – click more info and allow it to run. (If you have concerns feel free to decompile or build from source)

Binary: RestoreCommandPrompt.exe

Source: https://github.com/JasonJShuler/RestoreCommandPrompt

 

You have 3 options. You can restore the folder shift-right click context menu, the folder background menu, and you can replace the Open Powershell here with the much more useful “Open Command Prompt”

 

Log out and back in and windows is at least 6 times better.

4 Replies to “Restore Open Command Window Here to Windows 10”

  1. Got an error when i executed this 🙁

    Attempting to open key with write access

    Unhandled Exception: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
    at System.Security.AccessControl.Win32.SetSecurityInfo(ResourceType type, String name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)
    at System.Security.AccessControl.NativeObjectSecurity.Persist(String name, SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
    at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections, Object exceptionContext)
    at System.Security.AccessControl.NativeObjectSecurity.Persist(SafeHandle handle, AccessControlSections includeSections)
    at System.Security.AccessControl.RegistrySecurity.Persist(SafeRegistryHandle hKey, String keyName)
    at Microsoft.Win32.RegistryKey.SetAccessControl(RegistrySecurity registrySecurity)
    at RestoreCommandShell.Program.AddPermissions()
    at RestoreCommandShell.Program.Main(String[] args)

    any help?

    1. Pradeep – this was because you did not use an elevated command prompt. I have updated to tool to be GUI and to require elevation. The new tool also lets you roll it back.

Leave a Reply

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