无法为CurrentUser设置Powershell ExecutionPolicy
发布时间:2020-12-13 19:24:58 所属栏目:Windows 来源:网络整理
导读:以下是我正在运行的命令的示例: PS C: Get-ExecutionPolicy -List Scope ExecutionPolicy ----- ---------------MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser Undefined LocalMachine UnrestrictedPS C: Set-ExecutionPo
以下是我正在运行的命令的示例:
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窗体应用程序C#样式
- microsoft-metro – 从自定义shell运行metro应用程序
- windows-server-2008 – 组合2 – 1GB网卡 – 只能看到50%
- .net – 如何在Windows服务上捕获未处理的异常?
- linuxRedhat7 windows物理机与虚拟机设置共享目录
- XAMPP Windows Apache VirtualHost 403禁止使用
- 在Windows下为Matlab编译Shogun工具箱
- 如何在Windows上集成PHP和R?
- windows提权方法总结
- Windows应用商店应用 – WinJS:0x800a1391 – JavaScript运