新建文件 power-shell.bat
输入下列代码
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\psadmin]
"ShowBasedOnVelocityId"=dword:00639bc8
@="open power shell"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\psadmin\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
本文介绍了一种在Windows中创建PowerShell快捷方式的方法,通过编辑注册表实现右键菜单调用PowerShell,方便进行系统管理和脚本运行。
3866





