簡體   English   中英

腳本執行策略

[英]Script execution policy

我有PowerShell執行策略問題。 起初我以為這只是因為我試圖從GitHub項目運行腳本,但我甚至無法運行自己的腳本。 我過去沒有遇到這個問題,我不知道從那時到現在可能發生什么變化。

> script.ps1 cannot be loaded because the exe
cution of scripts is disabled on this system. Please see "get-help about_signing"
 for more details.

您需要檢查並可能調整PowerShell的x86和x64版本的當前策略(如果適用)。

使用Get-ExecutionPolicy檢查當前策略,並使用Set-ExecutionPolicy相應調整。

有關執行策略的說明,請參閱使用Set-ExecutionPolicy Cmdlet

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM