无法为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

我想将CurrentUser设置为Unrestricted,但我似乎无法这样做.我检查了this MSDN document中概述的组策略,但未找到任何已配置的内容.

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

像所有其他人一样,这似乎是Windows 10预览版本中的一个错误.我通过简单地提供-Force参数让它工作.

本地机器的设置:

Set-ExecutionPolicy RemoteSigned -Force

当前用户的设置:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...