鼠标右键菜单 在此处打开 PowerShell

迅恒数据中心
保存注册表reg文件双击即可

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin]
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\command]
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin]
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\command]
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


[HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin]
@="在此处打开 PowerShell"
"Extended"=-
"Icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8

[HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin\command]
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]


; To allow mapped drives to be available in elevated PowerShell
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001

分类:IDC资讯 百度收录 必应收录