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.
Thanks mate – that should be useful.
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?
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.
I am running OS Build 17134.345
I tried the utility, nothing happened.
Used your binary to enable cmd in the ribbon file menu. Signed out/in, came back, clicked File, and PowerShell is gone, replaced by cmd, but it’s greyed out.
https://i.gyazo.com/bdc784ab1134b04f99eebb4cc0d7e730.png
It’s remarkable to go to see this site and reading the views of
all colleagues concerning this post, while I am also zealous of getting experience.
nice blog iam verry hapy