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