Update 'other/cmdreg.reg'

This commit is contained in:
2019-06-29 21:04:01 +03:00
parent 2a0e09f3a0
commit 834aa4e85a

View File

@@ -1,51 +1,54 @@
Windows Registry Editor Version 5.00 Windows Registry Editor Version 5.00
; Cannot disable PowerShell entry by default because it's protected, ; Cannot disable PowerShell entry by default because it's protected,
; see https://www.msftnext.com/take-ownership-registry-key/ ; see https://www.msftnext.com/take-ownership-registry-key/
; Disable PowerShell entries ; Keep the name of the cmd.exe (admin) key as 'runas', does not work otherwise.
[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"ProgrammaticAccessOnly"="" ; Disable PowerShell entries
[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell] [HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"ProgrammaticAccessOnly"="" "ProgrammaticAccessOnly"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell]
; Add cmd.exe entries "ProgrammaticAccessOnly"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmduser]
@="Open command window here" ; Add cmd.exe entries
"Extended"=""
"NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\cmduser]
@="Open command window here"
[HKEY_CLASSES_ROOT\Directory\shell\cmduser\command] "Extended"=""
@="cmd.exe /s /k pushd \"%V\"" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\cmduser] [HKEY_CLASSES_ROOT\Directory\shell\cmduser\command]
@="Open command window here" @="cmd.exe /s /k pushd \"%V\""
"Extended"=""
"NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\background\shell\cmduser]
@="Open command window here"
[HKEY_CLASSES_ROOT\Directory\background\shell\cmduser\command] "Extended"=""
@="cmd.exe /s /k pushd \"%V\"" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\cmduser\command]
; Add cmd.exe (admin) entries @="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin]
@="Open command window here (Administrator)" ; Add cmd.exe (admin) entries
"Extended"=""
"NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here (Administrator)"
[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin\command] "Extended"=""
@="cmd.exe /s /k pushd \"%V\"" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\directory\background\Shell\cmdadmin] [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="Open command window here (Administrator)" @="cmd.exe /s /k pushd \"%V\""
"Extended"=""
"NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\directory\background\Shell\runas]
@="Open command window here (Administrator)"
[HKEY_CLASSES_ROOT\directory\Background\Shell\cmdadmin\command] "Extended"=""
@="cmd.exe /s /k pushd \"%V\"" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\directory\Background\Shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""