windows:powershell:commands:get-execution_policy

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
windows:powershell:commands:get-execution_policy [2020/05/29 13:50] – 作成 ともやんwindows:powershell:commands:get-execution_policy [2020/09/11 19:07] (現在) ともやん
行 1: 行 1:
-====== Get-ExecutionPolicy/Set-ExecutionPolicy ======+====== Get-ExecutionPolicy / Set-ExecutionPolicy ======
 コンピューターの PowerShell 実行ポリシーを取得/設定する。\\ コンピューターの PowerShell 実行ポリシーを取得/設定する。\\
 **動作: Windows/Linux**\\ **動作: Windows/Linux**\\
-\\+
 ===== Get-ExecutionPolicy ===== ===== Get-ExecutionPolicy =====
 **Windows**\\ **Windows**\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Get-ExecutionPolicy
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 <code powershell> <code powershell>
-PS > Get-ExecutionPolicy 
 RemoteSigned RemoteSigned
 +</code>
 +</WRAP>
  
-PS > Get-ExecutionPolicy -List+<WRAP prewrap 100%> 
 +<code powershell> 
 +Get-ExecutionPolicy -List 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap 100% #result> 
 +<code powershell>
  
         Scope ExecutionPolicy         Scope ExecutionPolicy
行 19: 行 32:
  LocalMachine    RemoteSigned  LocalMachine    RemoteSigned
 </code> </code>
 +</WRAP>
  
 **Linux**\\ **Linux**\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Get-ExecutionPolicy
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 <code powershell> <code powershell>
-PS > Get-ExecutionPolicy 
 Unrestricted Unrestricted
-PS > Get-ExecutionPolicy -List+</code> 
 +</WRAP> 
 + 
 +<WRAP prewrap 100%> 
 +<code powershell> 
 +Get-ExecutionPolicy -List 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap 100% #result> 
 +<code powershell>
  
         Scope ExecutionPolicy         Scope ExecutionPolicy
行 34: 行 62:
  LocalMachine    Unrestricted  LocalMachine    Unrestricted
 </code> </code>
 +</WRAP>
  
 ===== Set-ExecutionPolicy ===== ===== Set-ExecutionPolicy =====
 **Windows**\\ **Windows**\\
 +<WRAP prewrap 100%>
 <code powershell> <code powershell>
-PS > Set-ExecutionPolicy RemoteSigned+Set-ExecutionPolicy RemoteSigned
 </code> </code>
 +</WRAP>
 or or
 +<WRAP prewrap 100%>
 <code powershell> <code powershell>
-PS > Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine+Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
 </code> </code>
 +</WRAP>
  
 **Linux**\\ **Linux**\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ Set-ExecutionPolicy RemoteSigned
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 <code powershell> <code powershell>
-PS > Set-ExecutionPolicy RemoteSigned 
 Set-ExecutionPolicy: Operation is not supported on this platform. Set-ExecutionPolicy: Operation is not supported on this platform.
 </code> </code>
 +</WRAP>
  
 ===== ExecutionPolicy ===== ===== ExecutionPolicy =====
  • windows/powershell/commands/get-execution_policy.1590727822.txt.gz
  • 最終更新: 2020/05/29 13:50
  • by ともやん