ハッピーメモメモ

私的備忘録

【PowerShell】実行ポリシー

実行ポリシーとは

PowerShellスクリプトを実行する上で、どの程度まで実行する事を許可するかを設定する事ができるポリシー

【PowerShell】実行ポリシーを変更する - SEブログ

 

スクリプトの実行が無効になっているエラー

→実行中の PowerShell プロセス内のみ設定

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

→現在のユーザーに対して設定

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

実行ポリシーについて - PowerShell | Microsoft Docs