你好,
登录脚本无法强制以管理员身份运行,但是开机脚本可以。
导航到“策略\管理模板\ Windows组件\ Windows PowerShell ,这个可以修改执行策略。

你可以尝试先以管理员身份运行脚本,如果可以,开机脚本理论上也可以。
Best Regards,
Frank
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com