From 2a0e09f3a0b2697df8dac1478a128909beb3bd8f Mon Sep 17 00:00:00 2001 From: olari Date: Sat, 29 Jun 2019 20:31:33 +0300 Subject: [PATCH] Add cmdreg.reg --- other/cmdreg.reg | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 other/cmdreg.reg diff --git a/other/cmdreg.reg b/other/cmdreg.reg new file mode 100644 index 0000000..e590dc6 --- /dev/null +++ b/other/cmdreg.reg @@ -0,0 +1,51 @@ +Windows Registry Editor Version 5.00 + +; Cannot disable PowerShell entry by default because it's protected, +; see https://www.msftnext.com/take-ownership-registry-key/ + + +; Disable PowerShell entries + +[HKEY_CLASSES_ROOT\Directory\shell\Powershell] +"ProgrammaticAccessOnly"="" + +[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell] +"ProgrammaticAccessOnly"="" + + +; Add cmd.exe entries + +[HKEY_CLASSES_ROOT\Directory\shell\cmduser] +@="Open command window here" +"Extended"="" +"NoWorkingDirectory"="" + +[HKEY_CLASSES_ROOT\Directory\shell\cmduser\command] +@="cmd.exe /s /k pushd \"%V\"" + +[HKEY_CLASSES_ROOT\Directory\background\shell\cmduser] +@="Open command window here" +"Extended"="" +"NoWorkingDirectory"="" + +[HKEY_CLASSES_ROOT\Directory\background\shell\cmduser\command] +@="cmd.exe /s /k pushd \"%V\"" + + +; Add cmd.exe (admin) entries + +[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin] +@="Open command window here (Administrator)" +"Extended"="" +"NoWorkingDirectory"="" + +[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin\command] +@="cmd.exe /s /k pushd \"%V\"" + +[HKEY_CLASSES_ROOT\directory\background\Shell\cmdadmin] +@="Open command window here (Administrator)" +"Extended"="" +"NoWorkingDirectory"="" + +[HKEY_CLASSES_ROOT\directory\Background\Shell\cmdadmin\command] +@="cmd.exe /s /k pushd \"%V\""