WinRM Dienst startet nicht mit Fehlercode 234 im System Eventlog

Posted by O.Sommer

Der Windows Remote Management Service (WinRm) Dienst startet heute auf zwei VMs mit der Fehlermeldung 234 im Eventlog nicht:

Log Name:      System
Source:        Microsoft-Windows-WinRM
Date:          21.02.2014 14:34:27
Event ID:      10119
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      serverxyz.servers.someone
Description:
The WinRM service is unable to start because of a failure during initialization.

Additional Data
The error code is 234.

Der WinRm Dienst ließ sich auch durch

WinRm quickconfig

in einer administrativen CMD nicht konfigurieren/einstellen/starten:

F:\>winrm quickconfig
WinRM is not set up to receive requests on this machine.
The following changes must be made:

Set the WinRM service type to delayed auto start.
Start the WinRM service.

Make these changes [y/n]? y

WinRM has been updated to receive requests.

WinRM service type changed successfully.
WinRM service started.
WSManFault
    Message = The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is ccepting 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
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".

F:\>winrm enumerate winrm/config/listener
WSManFault
    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".

Error number:  -2144108526 0x80338012
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".

 

Nach kurzer Recherche fand ich folgendes Posting in den MS Foren:

http://social.technet.microsoft.com/Forums/windowsserver/en-US/01773ae7-6209-477b-ab30-705090be9b1d/the-winrm-service-is-unable-to-start-because-of-a-failure-during-initialization?forum=winserverManagement

Dort wird beschrieben das im Registrierungsschlüssel:

HKLM\SYSTEM\CurrentControlSet\Services\HTTP\Parameters

Einträge mit falschem Type, wären. REG_SZ und REG_QWORD statt REG_DWORD.
Das war auch bei den beiden VM die ich hatte so, dort waren es die beiden REG_SZ Einträge, die in folgendem Screenshot schon als REG_DWORD von mir neu angelegt wurden und die alten, für späteres Troubleshooting (falls nötig) umbenannt wurden:

image

Nachdem die beiden Werte als REG_DWORD neu erstellt wurdn, ließ sich der WinRM Dienst mittels “winrm quickconfig” dann auch erfolgreich konfigurieren und starten:

image