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://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.security/get-executionpolicy?view=powershell-6

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6

https://chocolatey.org/install

最新文章

  1. C语言第7次作业
  2. ftp发送文件
  3. hdu.1043.Eight (打表 || 双广 + 奇偶逆序)
  4. LeetCode----66. Plus One(Java)
  5. Struts2笔记——struts.xml配置详解
  6. Highly divisible triangular number
  7. python连接postgresql数据库
  8. linux 工具: Top
  9. java http url post json
  10. jQuery的工作原理
  11. Python操作SQLAchemy
  12. docker pull 镜像报错
  13. 第三周作业(三)---WordCounter
  14. ceph 安装过程
  15. laravel 5 : Class 'input' not found
  16. 【剑指offer】将字符串中的空格替换成"%20"
  17. Git如何永久删除文件(包括历史记录)
  18. 详细解读Volley(三)—— ImageLoader & NetworkImageView
  19. java类加载,简单认识
  20. HBase最佳实践-用好你的操作系统

热门文章

  1. 使用IDEA开发Activiti工作流
  2. JAVA WEB开发中的会话跟踪
  3. locate包的安装
  4. 转:Linux设备驱动开发(1):内核基础概念
  5. deb软件包安装和卸载
  6. struts2的异常配置
  7. Linux就业技术指导(四):企业CDN缓存加速原理解密
  8. Memtester——Linux内存测试工具
  9. IE6、IE7、Firefox中margin问题及input解决办法
  10. window环境mysql解压版配置