[Powershell] 解決不能執行Powershell Script 的問題

當第一次執行Powershell 指令檔時, 有時會因為系統的Execution Policy設定而禁止執行. 因此執行失敗.若要證實是否這個情況, 可以透過以下指令:

Get-ExecutionPolicy

若之前沒有做任何設定的話, 預設為Restricted. 若需要解除限制的話, 則需要在系統管理員權限下開啟Powershell, 並輸入以下指令:

Set-ExecutionPolicy RemoteSigned

之後輸入”Y”便可.

About C.H. Ling 260 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.