Windwos10-PowerShell𢴇行.sh1脚本

Windwos10-PowerShell𢴇行.sh1脚本
Windwos10-PowerShell𢴇行.sh1脚本

𢴇行『.sh1』脚本用『PowerShell』.默認执行策略『AllSigned』𢴇行『.sh1』冇反應阻止脚本𢴇行.

改為『RemoteSigned』允許𢴇行『.sh1』脚本.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  1. 以系統管理員身份𢴇行『PowerShell』 .
  2. 『set-ExecutionPolicy RemoteSigned』 執行原則變更『RemoteSigned』.

 

get-ExecutionPolicy
set-ExecutionPolicy RemoteSigned
get-ExecutionPolicy

發佈留言