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/05/29 13:55] ともやん
行 1: 行 1:
-====== Get-ExecutionPolicy/Set-ExecutionPolicy ======+<html> 
 +  <style> 
 +    #result pre, #mincode pre { 
 +      overflow: hidden; 
 +      font-size: 10px; 
 +    } 
 +    #result_long pre { 
 +      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: white; 
 +      padding: 10px; 
 +      width: fit-content; 
 +    } 
 +    #logo p { 
 +      margin: 0; 
 +    } 
 +  </style> 
 +</html> 
 +====== Get-ExecutionPolicy / Set-ExecutionPolicy ======
 コンピューターの PowerShell 実行ポリシーを取得/設定する。\\ コンピューターの PowerShell 実行ポリシーを取得/設定する。\\
 **動作: Windows/Linux**\\ **動作: Windows/Linux**\\
行 5: 行 41:
 ===== 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: 行 68:
  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: 行 98:
  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.txt
  • 最終更新: 2020/09/11 19:07
  • by ともやん