gpt4 book ai didi

powershell - 无法在Windows10上加载Powershell

转载 作者:行者123 更新时间:2023-12-02 23:26:35 26 4
gpt4 key购买 nike

我正在运行Powershell来获取正在运行的应用程序。它在Windows 7中可以正常工作,但是尝试在Windows 10上运行时出现错误。这是错误

D:\z.test\getprocess.ps1 : File D:\z.test\getprocess.ps1 cannot be loaded. The file D:\z.test\getprocess.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + D:\z.test\getprocess.ps1 + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess



这里似乎是什么问题?请帮忙。

最佳答案

以管理员身份运行PowerShell,然后键入:

Set-ExecutionPolicy RemoteSigned

阅读有关Powershell执行策略 here的信息

关于powershell - 无法在Windows10上加载Powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35194822/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com