首页 > 系统服务 > 详细

powershell 设置记录

时间:2019-05-23 14:08:49      阅读:107      评论:0      收藏:0      [点我收藏+]

ExecutionPolicy

powershell对于脚本的执行有着严格的安全限制

Get-ExecutionPolicy -List
Set-ExecutionPolicy -Scope CurrentUser AllSigned

Policies:

Restricted / AllSigned / RemoteSigned / Unrestricted / Bypass / Undefined

Scopes:

Process / CurrentUser / LocalMachine

process仅对当前进程有效,可以用作临时使用,例如:

Set-ExecutionPolicy Bypass -Scope Process -Force; npm-windows-upgrade

参考:
获取执行策略限制
设置执行策略限制
执行策略文档
https://chocolatey.org/install

powershell 设置记录

原文:https://www.cnblogs.com/wswind/p/10911286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!