'여기에 관리자 권한으로 xxxxx 열기'가 두 개 이상 있습니다.

'여기에 관리자 권한으로 xxxxx 열기'가 두 개 이상 있습니다.

Windows의 드라이브 및 디렉터리 상황에 맞는 메뉴에서 관리자 권한으로 명령 창이나 Powershell 창을 열 수 있는 옵션이 필요합니다.

나는 가질 수 있다어느 하나아래에 표시된 특수 'runas' 레지스트리 키를 생성하고 채우는 방법이 있지만, 이를 수행할 수 있는 방법이 있습니까?둘 다상황에 맞는 메뉴에 나열되어 있으며둘 다관리자로 실행하시겠습니까?

[HKEY_CLASSES_ROOT\Drive\shell\runas]
...
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
...
[HKEY_CLASSES_ROOT\Directory\shell\runas]
...
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
...
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
...
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
...

답변1

다음 레지스트리 해킹은 Windows 8.1의 디렉터리에서 작동합니다.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\runas]
"HasLUAShield"=""
@="CMD here as administrator"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /S /K pushd \"%V\""
"DelegateExecute"=""

[HKEY_CLASSES_ROOT\Directory\shell\runasPowerShell]
"HasLUAShield"=""
@="PowerShell here as administrator"

[HKEY_CLASSES_ROOT\Directory\shell\runasPowerShell\command]
@="Powershell Start-Process PowerShell -verb runas -ArgumentList '-noexit', 'Push-Location -literalPath ''\"%V\"'''"
"DelegateExecute"=""

아래에 드라이브에 대한 유사 키 runas와 하위 키를 추가할 수도 있습니다 .runasPowerShell[HKEY_CLASSES_ROOT\Drive\shell]

높은 권한으로 CMD와 PowerShell을 모두 실행

관련 정보