差分
このページの2つのバージョン間の差分を表示します。
最新のリビジョン両方とも次のリビジョン | |||
windows:powershell:commands:get-execution_policy [2020/05/29 13:50] – 作成 ともやん | windows:powershell:commands:get-execution_policy [2020/05/29 13:55] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Get-ExecutionPolicy/ | + | < |
+ | < | ||
+ | #result pre, #mincode pre { | ||
+ | overflow: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | # | ||
+ | height: 250px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | #mintbl table { | ||
+ | font-size: 12px; | ||
+ | } | ||
+ | #mintbl td pre { | ||
+ | margin: 0; | ||
+ | } | ||
+ | #img_long { | ||
+ | height: 400px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | } | ||
+ | .dokuwiki .plugin_wrap table { | ||
+ | width: auto; | ||
+ | } | ||
+ | #logo { | ||
+ | background-color: | ||
+ | padding: 10px; | ||
+ | width: fit-content; | ||
+ | } | ||
+ | #logo p { | ||
+ | margin: 0; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | ====== Get-ExecutionPolicy / Set-ExecutionPolicy ====== | ||
コンピューターの PowerShell 実行ポリシーを取得/ | コンピューターの PowerShell 実行ポリシーを取得/ | ||
**動作: Windows/ | **動作: Windows/ | ||
行 5: | 行 41: | ||
===== Get-ExecutionPolicy ===== | ===== Get-ExecutionPolicy ===== | ||
**Windows**\\ | **Windows**\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ Get-ExecutionPolicy | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
<code powershell> | <code powershell> | ||
- | PS > Get-ExecutionPolicy | ||
RemoteSigned | RemoteSigned | ||
+ | </ | ||
+ | </ | ||
- | PS > Get-ExecutionPolicy -List | + | <WRAP prewrap 100%> |
+ | <code powershell> | ||
+ | $ Get-ExecutionPolicy -List | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
Scope ExecutionPolicy | Scope ExecutionPolicy | ||
行 19: | 行 68: | ||
| | ||
</ | </ | ||
+ | </ | ||
**Linux**\\ | **Linux**\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ Get-ExecutionPolicy | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
<code powershell> | <code powershell> | ||
- | PS > Get-ExecutionPolicy | ||
Unrestricted | Unrestricted | ||
- | PS > Get-ExecutionPolicy -List | + | </code> |
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ Get-ExecutionPolicy -List | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
Scope ExecutionPolicy | Scope ExecutionPolicy | ||
行 34: | 行 98: | ||
| | ||
</ | </ | ||
+ | </ | ||
===== Set-ExecutionPolicy ===== | ===== Set-ExecutionPolicy ===== | ||
**Windows**\\ | **Windows**\\ | ||
+ | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
- | PS > Set-ExecutionPolicy RemoteSigned | + | $ Set-ExecutionPolicy RemoteSigned |
</ | </ | ||
+ | </ | ||
or | or | ||
+ | <WRAP prewrap 100%> | ||
<code powershell> | <code powershell> | ||
- | PS > Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine | + | $ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine |
</ | </ | ||
+ | </ | ||
**Linux**\\ | **Linux**\\ | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | $ Set-ExecutionPolicy RemoteSigned | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
<code powershell> | <code powershell> | ||
- | PS > Set-ExecutionPolicy RemoteSigned | ||
Set-ExecutionPolicy: | Set-ExecutionPolicy: | ||
</ | </ | ||
+ | </ | ||
===== ExecutionPolicy ===== | ===== ExecutionPolicy ===== |