PowerShell:因为在此系统上禁止运行脚本

目录
报错
因为在此系统上禁止运行脚本。有关详细信息
原因
windows系统出于安全考虑,默认禁止脚本文件运行的
解决办法
设置系统允许脚本运行
- win + x 以管理员身份运行PowerShell
- 输入set-executionpolicy remotesigned,设置成Y即可