差分
このページの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 | ||
+ | </ | ||
+ | </ | ||
+ | <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 ' | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP pewwrap 100%> | ||
+ | <code powershell> | ||
+ | $ sudo Set-Item WSMan: | ||
+ | </ | ||
+ | </ | ||
+ | <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 | ||
+ | </ | ||
+ | </ | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
**PowerShell Remoting**\\ | **PowerShell Remoting**\\ | ||
[[https:// | [[https:// | ||
- | |||