保存注册表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 |
文章来源:
网络小编D
版权声明:
本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站立刻删除。
