powershell:无法加载文件ps1,因为在此系统中禁止执行脚本

By | 2019-02-11

无法加载文件 ******.ps1,因为在此系统中禁止执行脚本。有关详细信息,请参阅 “get-help about_signing”。 

主要是由于没有权限执行脚本。

在powershell中执行 set-ExecutionPolicy RemoteSigned

C:\> powershell -file “c:\batch\demo.ps1”

发表回复

您的电子邮箱地址不会被公开。