Update 'other/cmdreg.reg'
This commit is contained in:
105
other/cmdreg.reg
105
other/cmdreg.reg
@@ -1,51 +1,54 @@
|
||||
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\""
|
||||
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/
|
||||
|
||||
|
||||
; Keep the name of the cmd.exe (admin) key as 'runas', does not work otherwise.
|
||||
|
||||
|
||||
; 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\runas]
|
||||
@="Open command window here (Administrator)"
|
||||
"Extended"=""
|
||||
"NoWorkingDirectory"=""
|
||||
|
||||
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
|
||||
@="cmd.exe /s /k pushd \"%V\""
|
||||
|
||||
[HKEY_CLASSES_ROOT\directory\background\Shell\runas]
|
||||
@="Open command window here (Administrator)"
|
||||
"Extended"=""
|
||||
"NoWorkingDirectory"=""
|
||||
|
||||
[HKEY_CLASSES_ROOT\directory\Background\Shell\runas\command]
|
||||
@="cmd.exe /s /k pushd \"%V\""
|
||||
|
||||
Reference in New Issue
Block a user