如何打包PowerShell脚本,以便在单击快捷方式时运行它?

时间:2015-07-22 13:09:00

标签: powershell

我有一个为我创建的示例.ps PowerShell脚本。

当有人点击Windows快捷方式图标时,有人可以告诉我如何制作它以便这个shell在后台运行。

1 个答案:

答案 0 :(得分:2)

创建

的快捷方式

powershell -noexit -executionpolicy bypass -File script.ps

相关问题