小编Cam*_*ute的帖子

无法为 CurrentUser 设置 Powershell ExecutionPolicy

这是我正在运行的命令示例:

PS C:\> Get-ExecutionPolicy -List 

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser       Undefined
 LocalMachine    Unrestricted


PS C:\> Set-ExecutionPolicy Unrestricted -Scope CurrentUser
PS C:\> Get-ExecutionPolicy -List

        Scope ExecutionPolicy
        ----- ---------------
MachinePolicy       Undefined
   UserPolicy       Undefined
      Process       Undefined
  CurrentUser       Undefined
 LocalMachine    Unrestricted
Run Code Online (Sandbox Code Playgroud)

我想将 设置CurrentUserUnrestricted,但我似乎无法这样做。我按照此 MSDN 文档中的概述检查了适当的组策略,但没有找到任何已配置的内容。

关于如何设置这个的任何线索?

powershell windows-10

12
推荐指数
2
解决办法
3万
查看次数

标签 统计

powershell ×1

windows-10 ×1