Why isn’t KMS counting activation requests?
Learn some techniques to avoid error 0xC004F038 when using KMS to activate Office installations.
Key Management Service (KMS) helps you activate multiple Office licenses over your local network, without requiring each computer to connect up to Microsoft for activation. Sometimes, though, KMS can appear to disregard client activation requests, causing the following error:
The Software Licensing Service reported that the product could not be activated. The count reported by your Key Management Service (KMS) is insufficient. Please contact your system administrator.
This issue occurs because the KMS server has to receive at least five unique requests before it begins activating licenses. If you have used Sysprep in your environment, it’s possible Office was not rearmed prior to the image creation. This can create a situation where multiple computers are using the same Office Client Machine ID (CMID), which in turn will cause the KMS server to count them as one computer. To see if this is happening, check the Key Management Service Host log in Event Viewer on the KMS server. You will see entries like these:
Notice Ignite1 and Ignite5 have the same CMID (930bd202-a335-4c7e-bd9d-7305361f0d37). This indicates that while the base OS image may have been generalized, the Office rearm step was skipped.
On most client computers, you can use the command ospp.vbs /dcmid to check the CMID. However, if you are running Office 2013 on a Windows 8 system, ospp.vbs /dcmid will return the CMID for Windows 8, not for Office 2013. You have to look in Event Viewer in the Application log to get the Office CMID. For more information see the related blog post.
Rearming Office prior to creating an image
This procedure ensures that the image you create will result in unique CMIDs when deployed.
Make sure all Office 2013 applications are closed.
Open an elevated command prompt.
Go to %Program Files%\Microsoft Office\Office15. If you installed the 32-bit edition of Office 2013 on a 64-bit operating system, %Program Files% is the Program Files (x86) folder.
At the command prompt, type ospprearm.exe. When it completes, you should see the message “Microsoft Office rearm successful.”
Capture the image or save the virtual machine. For more information about how to capture the image, see Configure Office 2010 for a hard disk image.
Important: Don’t open any Office applications or run ospp.vbs while the image is being captured. Otherwise, the grace period timer will start.
Fixing already-deployed clients
If you’ve already deployed your OS image to computers, but the Office rearm was not done during the imaging process, you can use this startup script on each computer to rearm Office and generate a new unique Office CMID. This works on both 32-bit and 64-bit versions of Office 2013.
@echo off :OSPP reg query HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM if %errorlevel%==1 (goto RUN) else (goto END) :RUN set ProgramFilesPath=%ProgramFiles% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act set ProgramFilesPath=%ProgramFiles(x86)% "%ProgramFilesPath%\Common Files\microsoft shared\OfficeSoftwareProtectionPlatform\OSPPREARM.EXE" C:\Windows\system32\cscript.exe "%ProgramFilesPath%\Microsoft Office\Office15\ospp.vbs" /act REG ADD "HKLM\Software\Microsoft\Office\15.0\Common\OSPPREARM" :END Exit