在我的 Windows 7 桌面上,我有 script.ps1,它需要管理员权限(它启动一个服务)。我想单击此脚本并以管理员权限运行它。
实现这一目标的最简单方法是什么?
windows-7 powershell
powershell ×1
windows-7 ×1