リモート接続の有効化(サーバ側)リモート接続の有効化PS C:\Windows\system32> Enable-PSRemoting WinRM は要求を受信するように更新されました。 WinRM サービスの種類を正しく変更できました。 WinRM サービスが開始されました。 WinRM はリモート管理用に更新されました。 WinRM ファイアウォールの例外を有効にしました。
(クライアント側)接続先サーバの追加追加PS> Set-Item wsman:\localhost\client\TrustedHosts -Value 192.168.0.10 -Force
確認PS> Get-Item WSMan:\localhost\Client\TrustedHosts クリアPS> Clear-Item WSMan:\localhost\Client\TrustedHosts 参考https://mstn.hateblo.jp/entry/2016/09/13/193124 (クライアント側)リモート接続の実行PS> Enter-PSSession -ComputerName myremote-pc1 -Credential mydomain\administrator WinRMのポートを変更するWinrm set winrm/config/listener?Address=*+Transport=HTTP@{Port="1234"} PowerShellリモーティングはドメインネットワークで行う
|
|