How to fix Error 581 on Windows 11

Windows Server Error 581: Incorrect Configuration Troubleshooting Guide

Why This Error Happens

Error 581 typically occurs when a Windows Server’s configuration database contains mismatched or corrupted settings, often stemming from an incomplete update, a failed Group Policy application, or manual registry edits that conflict with system requirements. This can also result from misaligned server roles/features where dependent services expect a configuration state that doesn’t match the current system state. Additionally, corrupted configuration files in the SYSVOL or registry hives can trigger this error when the system attempts to validate settings against expected schemas.

Step-by-Step Resolution Guide

  1. Open Event Viewer (Win + X → Event Viewer) and navigate to Windows Logs > System. Filter for Event ID 581 to identify the exact service or component reporting the misconfiguration—note the source name shown in the General tab.

  2. Run the System File Checker to repair corrupted system files:

  • Open Command Prompt as Administrator
  • Run sfc /scannow
  • Follow with DISM /Online /Cleanup-Image /RestoreHealth to repair the Windows image if SFC finds unrepairable files.
  1. Verify and reset the affected configuration using PowerShell:
  • Open PowerShell as Administrator
  • Run Get-WindowsFeature (on Server) or Get-WindowsOptionalFeature -Online to check role/feature consistency
  • If a feature shows an inconsistent state, remove and reinstall it:

    Uninstall-WindowsFeature -Name <FeatureName>
    Install-WindowsFeature -Name <FeatureName>
  1. Check Group Policy configuration by running:
  • gpresult /h C:\gpreport.html to generate a report
  • Review for conflicting or failed policies, then run gpupdate /force to reapply settings correctly.
  1. Inspect the registry hive tied to the failing component (back up first via regedit → File > Export). Compare key values against a known-good server or Microsoft documentation, correcting any invalid entries under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.

Alternative or Verification Steps

  • Verify the fix: Reopen Event Viewer and confirm Error 581 no longer appears after triggering the affected service/role; also run sfc /scannow again to confirm a clean scan with no integrity violations.
  • Alternative solution: If the error persists, restore the server configuration from a recent System State backup using wbadmin start systemstaterecovery, or roll back the last applied Windows Update via Settings > Windows Update > Update History > Uninstall Updates.