Description
SL_E_ACTIVATION_FAILED_KMS (hex code 0xC004F074, decimal -1073415052) is a Windows error-level error code in the Office & M365 Activation family. Microsoft surfaces this code through the Win32 API, the Common Language Runtime, the kernel, the event log, PowerShell, command-line tools (sfc, dism, gpupdate, sc), and Windows-side applications such as Outlook, Teams, Office, and System Center.
KMS activation failed. No KMS host could be found. Check DNS SRV records or KMS host availability.
This page documents what triggers 0xC004F074, the most common scenarios where it appears, the likely root causes, and a step-by-step troubleshooting workflow you can run against affected endpoints. It is intended for system administrators, MSP technicians, helpdesk engineers, and anyone diagnosing Windows behavior in a managed environment.
In-depth explanation
This is an error-severity code. Windows uses it to signal a failed operation that prevented the caller from completing its work. The underlying cause can range from a permissions or quota issue to a corrupted system component, missing dependency, or unreachable service.
It is part of the Software Licensing (SL) / Office Click-to-Run activation error space. It typically surfaces in slmgr.vbs output, the Office Activation Wizard, the SL service log, or the M365 admin center.
The code can be looked up programmatically in PowerShell with [ComponentModel.Win32Exception]::new(-1073415052).Message (for Win32 / NTSTATUS codes that map cleanly), or with net helpmsg <decimal> for the legacy decimal range. For HRESULT-style codes, decode the facility and code with err.exe from the SDK or via the WinDbg !error command.
Common causes
- License key blocked, revoked, or used on too many devices.
- KMS host unreachable, missing SRV records, or activation count below threshold.
- Office identity (Microsoft 365 account) signed-out, expired, or licenses unassigned.
- Time skew or invalid system clock blocking license validation.
- Network proxy or TLS inspection breaking the activation endpoint.
Troubleshooting steps
- Run
cscript %ProgramFiles%\Microsoft Office\Office16\OSPP.VBS /dstatusto view current license state and KMS host. - For Microsoft 365: sign out from File > Account, restart the app, sign back in, and verify license assignment in the M365 admin center.
- For KMS clients:
slmgr /skms <kms-host>:1688andslmgr /atoto force activation against a known-good KMS host. - Check time and timezone — invalid system clock prevents license validation.
- If proxy / TLS inspection is in place, exclude the activation endpoints (
activation.sls.microsoft.com,*.officeapps.live.com).
Decode in PowerShell
# Decode 0xC004F074 (-1073415052) in PowerShell
[ComponentModel.Win32Exception]::new(-1073415052).Message
# Or via WinDbg / err.exe (Windows SDK)
# err 0xC004F074
# Or net helpmsg (legacy decimal range only)
# net helpmsg <decimal>Frequently asked questions
What does the Windows error code 0xC004F074 mean?
SL_E_ACTIVATION_FAILED_KMS (decimal -1073415052). KMS activation failed. No KMS host could be found. Check DNS SRV records or KMS host availability.How do I decode 0xC004F074 in PowerShell?
[ComponentModel.Win32Exception]::new(-1073415052).Message in any PowerShell session. For HRESULT-style codes, use err.exe from the Windows SDK or the WinDbg !error command.Where does Windows typically log this error?
%WinDir%\WindowsUpdate.log; AD/Kerberos → Security event log on the DC; BSOD → minidump under C:\Windows\Minidump; MSI → %TEMP%\msi*.log; WMI → Microsoft-Windows-WMI-Activity). Always cross-reference the timestamp and module name with the Application and System event logs.Is this code recoverable?
Should I open a Microsoft support case for this?
Get-WinEvent export ready before opening the case.
