設定値
内容
Restricted
個別のコマンドは許可されますが、スクリプトは実行されません。
AllSigned
ローカル コンピューター上で記述されたスクリプトを含むすべてのスクリプトと構成ファイルが、信頼された発行元によって署名されている必要があります。
RemoteSigned
インターネット (電子メールとインスタント メッセージング プログラムを含む) からダウンロードされたスクリプトと構成ファイルが、信頼された発行元によってデジタル署名されている必要があります。
Unrestricted
署名されていないスクリプトを実行できます。
Bypass
何もブロックされません。警告やプロンプトは表示されません。
Undefined
現在のスコープに実行ポリシーが設定されていません。すべてのスコープの実行ポリシーが Undefined の場合、有効な実行ポリシーは、既定の実行ポリシーである Restricted になります。
OS
実行ポリシーの既定値
Windows 7
Restricted
Windows 8, 8.1
Restricted
Windows 10
Restricted
Windows Server 2008 R2
Restricted
Windows Server 2012
Restricted
Windows Server 2012 R2
RemoteSigned
Windows Server 2016
RemoteSigned
OS
実行ポリシーの既定値
Windows
RemoteSigned
macOS
Unrestricted
Linux
Unrestricted
Get-ExecutionPolicy -Listの結果
PS C:\> Get-ExecutionPolicy - List | ft - AutoSize
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined
PS C:\> Get-ExecutionPolicy - List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined
PS C:\> Get-ExecutionPolicy - List | ft - AutoSize
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined
PS C:\> Get-ExecutionPolicy - List | ft - AutoSize
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined
PS C:\> Get-ExecutionPolicy - List | ft - AutoSize
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
PS C:\> Get-ExecutionPolicy - List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
PowerShell Core on Windows
PS C:\> Get-ExecutionPolicy - List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine RemoteSigned
PS / > Get-ExecutionPolicy - List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Unrestricted
UserPolicy Unrestricted
Process Unrestricted
CurrentUser Unrestricted
LocalMachine Unrestricted
PS / > Get-ExecutionPolicy - List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Unrestricted
UserPolicy Unrestricted
Process Unrestricted
CurrentUser Unrestricted
LocalMachine Unrestricted