Windows 将PowerShell 添加至右键菜单

新建一个.reg文件,复制一下内容
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellHere\command]
@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location '%V'"
右键.reg文件 点击 合并 即可

