Event ID 10146 — Configuration
Applies To: Windows Server 2008 R2
You can configure various aspects of the WinRM service. The configuration information is stored in the registry.
Event Details
Product: | Windows Operating System |
ID: | 10146 |
Source: | Microsoft-Windows-WinRM |
Version: | 6.1 |
Symbolic Name: | LOG_WSMAN_SERVICE_CONFIG_CORRUPTED |
Message: | The WinRM service had a failure reading the current configuration and is stopping. User Action Use the following command to restore defaults: winrm invoke Restore winrm/config @{} Then add any custom configuration settings and restart the service. Additional Data The error code is: %1 %%%1 |
Resolve
Restore configuration and restart service
Use the following command to restore defaults.
Type winrm invoke Restore winrm/config @{} at a command prompt to restore the default configuration.
Add any custom configuration settings and restart the service. To restart the WinRM service by using the Services MMC snap-in:
- Click the Start button.
- Click Control Panel.
- Click System and Maintenance.
- Click Administrative Tools.
- Click Services to start the Services Microsoft Management Console (MMC) snap-in.
- Search for Windows Remote Management (WS-Management) in the list of service names displayed by the Services MMC snap-in.
- Right-click the Windows Remote Management (WS-Management) service name and select Restart to restart the service.
Note: If the WinRM service is not started, the Restart option will not appear in the context menu displayed in Step 7. In this case, select Start.
To restart the WinRM service by using a command-line tool:
- Type net stop winrm.
- Type net start winrm.
Verify
Use the winrm command-line tool to request the WinRM service to verify that the service is listening on the network.
To make a request, type winrm get winrm/config -r:<computer>, where computer is the name of the remote computer where the winrm service is running.