windows:powershell:remote-commands

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:powershell:remote-commands [2020/06/04 10:40] – [参考文献] ともやんwindows:powershell:remote-commands [2020/09/11 20:14] (現在) ともやん
行 1: 行 1:
 ====== PowerShell リモートコマンド実行 ====== ====== PowerShell リモートコマンド実行 ======
 +
 +===== PSRemoting の有効化 =====
 +<WRAP pewwrap 100%>
 +<code powershell>
 +$ sudo Enable-PSRemoting -SkipNetworkProfileCheck
 +</code>
 +</WRAP>
 +<WRAP pewwrap 100% #result>
 +<code powershell>
 +WARNING: PowerShell remoting has been enabled only for PowerShell 6+ configurations and does not affect Windows PowerShell remoting configurations. Run this cmdlet in Windows PowerShell to affect all PowerShell remoting configurations.
 +
 +WinRM サービスの種類を正しく変更できました。
 +WinRM サービスが開始されました。
 +
 +
 +WinRM ファイアウォールの例外を有効にしました。
 +ローカル ユーザーにリモートで管理権限を付与するよう LocalAccountTokenFilterPolicy を構成しました。
 +
 +WARNING: Waiting for service 'Windows Remote Management (WS-Management) (WinRM)' to stop...
 +</code>
 +</WRAP>
 +
 +<WRAP pewwrap 100%>
 +<code powershell>
 +$ sudo Set-Item WSMan:\localhost\Client\TrustedHosts -Value *
 +</code>
 +</WRAP>
 +<WRAP pewwrap 100% #result>
 +<code powershell>
 +
 +WinRM Security Configuration.
 +This command modifies the TrustedHosts list for the WinRM client. The computers in the TrustedHosts list might not be
 +authenticated. The client might send credential information to these computers. Are you sure that you want to modify
 +this list?
 +[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y
 +</code>
 +</WRAP>
  
 ===== 参考文献 ===== ===== 参考文献 =====
 [[https://docs.microsoft.com/ja-jp/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7|リモート コマンドの実行 - PowerShell | Microsoft Docs]]\\ [[https://docs.microsoft.com/ja-jp/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7|リモート コマンドの実行 - PowerShell | Microsoft Docs]]\\
 +[[https://blog.ipswitch.com/jp/how-to-run-commands-on-remote-computers-with-powershell|PowerShell を使ってリモートコンピュータでコマンドを実行する方法]]\\
  
 **PowerShell Remoting**\\ **PowerShell Remoting**\\
 [[https://ascii.jp/elem/000/001/694/1694500/|ASCII.jp:PowerShell Remotingで自宅にあるたくさんのWindowsマシンを管理する]]\\ [[https://ascii.jp/elem/000/001/694/1694500/|ASCII.jp:PowerShell Remotingで自宅にあるたくさんのWindowsマシンを管理する]]\\
- 
  
  • windows/powershell/remote-commands.1591234807.txt.gz
  • 最終更新: 2020/06/04 10:40
  • by ともやん