Update 'other/cmdreg.reg'

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

View File

@@ -4,6 +4,9 @@ Windows Registry Editor Version 5.00
; see https://www.msftnext.com/take-ownership-registry-key/ ; 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 ; Disable PowerShell entries
[HKEY_CLASSES_ROOT\Directory\shell\Powershell] [HKEY_CLASSES_ROOT\Directory\shell\Powershell]
@@ -34,18 +37,18 @@ Windows Registry Editor Version 5.00
; Add cmd.exe (admin) entries ; Add cmd.exe (admin) entries
[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin] [HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here (Administrator)" @="Open command window here (Administrator)"
"Extended"="" "Extended"=""
"NoWorkingDirectory"="" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdadmin\command] [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\"" @="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\directory\background\Shell\cmdadmin] [HKEY_CLASSES_ROOT\directory\background\Shell\runas]
@="Open command window here (Administrator)" @="Open command window here (Administrator)"
"Extended"="" "Extended"=""
"NoWorkingDirectory"="" "NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\directory\Background\Shell\cmdadmin\command] [HKEY_CLASSES_ROOT\directory\Background\Shell\runas\command]
@="cmd.exe /s /k pushd \"%V\"" @="cmd.exe /s /k pushd \"%V\""