PowerShell 他说: "禁用此系统中的脚本的执行。"
我正在尝试启动文件
, 这会导致脚本 PowerShell 的
, 但我收到这个错误:
它无法加载,因为禁用了此系统中的脚本的执行。
我执行了这个命令:
当我跑步时
的 PowerShell, 他回来了
.
文件
它无法加载,因为禁用了此系统中的脚本的执行。 敬请期待 "
" 欲获得更多信息。
在 line:1 char:25 年
<<<< 1
CategoryInfo
: NotSpecified: /:/ [], PSSecurityException
FullyQualifiedErrorId : RuntimeException
这个系统被称为 Windows Server 2008R2.
我究竟做错了什么?
cmd
, 这会导致脚本 PowerShell 的
cmd.exe
, 但我收到这个错误:
Management_Install.ps1
它无法加载,因为禁用了此系统中的脚本的执行。
我执行了这个命令:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
当我跑步时
Get-ExecutionPolicy
的 PowerShell, 他回来了
Unrestricted
.
PS C:\Users\Administrator\> Get-ExecutionPolicy
Unrestricted
C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\Install\Scripts\> powershell .\Management_Install.ps1 1
WARNING: Running x86 PowerShell...
文件
C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\Install\Scripts\Management_Install.ps1
它无法加载,因为禁用了此系统中的脚本的执行。 敬请期待 "
get-help about_signing
" 欲获得更多信息。
在 line:1 char:25 年
.\Management_Install.ps1
<<<< 1
CategoryInfo
: NotSpecified: /:/ [], PSSecurityException
FullyQualifiedErrorId : RuntimeException
C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\Install\Scripts\> PAUSE
Press any key to continue . . .
这个系统被称为 Windows Server 2008R2.
我究竟做错了什么?
没有找到相关结果
已邀请:
2 个回复
冰洋
赞同来自:
https://en.wikipedia.org/wiki/Windows_Server_2008
R2, IE
x64
和
x86
版本 PowerShell, 这应该有自己的实施政策。 您是否建立了两家主机上的执行政策?
如何
行政人员
, 您可以通过在窗口中输入执行策略。 PowerShell:
有关更多信息,请参阅部分
https://docs.microsoft.com/pow ... olicy
.
完成后,您可以使用以下将策略设置为默认值:
快网
赞同来自:
开始时 PowerShell