filmov
tv
Powershell. Troubleshooting remote control.Winrm.
Показать описание
Run remote command.
Invoke-Command -ScriptBlock { hostname } -ComputerName comp01
[comp01] Connecting to remote server comp01 failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests.
Get-Service -Name winrm -ComputerName comp01
Get-Service -Name winrm -ComputerName comp01 | start-service
Invoke-Command -ScriptBlock { hostname } -ComputerName comp01
[comp01] Connecting to remote server comp01 failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests.
Get-Service -Name winrm -ComputerName comp01
Get-Service -Name winrm -ComputerName comp01 | start-service