Errors when you run winrm commands to check local functionality in a Windows Server 2008 environment

Symptoms

When you run winrm commands to check the local functionality on a server in a Windows Server 2008 environment, you may receive error messages that resemble the following:

winrm e winrm/config/listener
WSManFault Message = The client cannot connect to the destination specified in the requests. Verify that the service on the destination is running and is accepting request. 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”
Error number:
—2144108526 0x80338012


winrm id
WSMan Fault
Message = The WinRM client received an HTTP bad request status (400), but the remote service did not include any other information about the cause of the failure. Error number:

—2144108175 0x80338171 

winrm quickconfig
WinRM is not set up to receive requests on this machine.
The following changes must be made:
Start the WinRM service.
Make these changes [y/n]? y
WinRM has been updated to receive requests.
WinRM service started.

WSManFault Message = The client cannot connect to the destination specified in the requests. 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'.

Error number: —2144108526 0x80338012

Cause

This problem may occur if the Window Remote Management service and its listener functionality are broken.

Resolution

To resolve this problem, follow these steps:
  1. Install the latest Windows Remote Management update. For more information about this update, click the following article number to view the article in the Microsoft Knowledge Base:
    981845 The Windows Remote Management service stops responding in Windows 7 or in Windows Server 2008 R2
  2. Run the following command to restore the listener configuration:
    winrm invoke Restore winrm/Config
  3. Run the following command to perform a default configuration of the Windows Remote Management service and its listener:

    winrm quickconfig
Eigenschaften

Artikelnummer: 2269634 – Letzte Überarbeitung: 04.08.2010 – Revision: 1

Feedback