!['여기에 관리자 권한으로 xxxxx 열기'가 두 개 이상 있습니다.](https://rvso.com/image/1466428/'%EC%97%AC%EA%B8%B0%EC%97%90%20%EA%B4%80%EB%A6%AC%EC%9E%90%20%EA%B6%8C%ED%95%9C%EC%9C%BC%EB%A1%9C%20xxxxx%20%EC%97%B4%EA%B8%B0'%EA%B0%80%20%EB%91%90%20%EA%B0%9C%20%EC%9D%B4%EC%83%81%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
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]