We have a script that will connect into machines and check for Windows Updates without rebooting them. We know this process works on another computer but on mine, it fails.
Note: I've verified that the WINRM service is running on both their PC and mine, and that my profile is set to public etc.
I get the following error repeatedly:
[TARGETSERVER] Connecting to remote server TARGETSERVER 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. Consult the logs and documentation for the WS-Management service running on the destination, most
commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to
analyze and configure the WinRM service: "winrm quickconfig". For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (TARGETSERVER:String) , PSRemotingTransportException
+ FullyQualifiedErrorId : CannotConnect,PSSessionStateBroken
Checking for and installing available updates
Install-WindowsUpdate : [TARGETSERVER] Connecting to remote server TARGETSERVER failed with the following error
message : The WinRM client cannot process the request. Default credentials with Negotiate over HTTP can be used only
if the target machine is part of the TrustedHosts list or the Allow implicit credentials for Negotiate option is
specified. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Scripts\EnableRemoteWSUSNoReboot.ps1:80 char:5
+ Install-WindowsUpdate -ComputerName $RemoteMachine -AcceptAll -Ve ...
+ CategoryInfo : OpenError: (TARGETSERVER:String) [Get-WindowsUpdate], PSRemotingTransportException
+ FullyQualifiedErrorId : ExplicitCredentialsRequired,PSSessionStateBroken
I am prompted for my domain creds when I connect and everything seems to be running properly.