How to license Windows server using command line utility

Error in Server manager: “Installation of the Proof of Purchase from the ACPI table failed. Error code: 0xC004F057”

PS: Even after performing the below steps user use to get the same message in server manager event log. To resolve this, we have to enter the below registry settings:

Using Regedit, traverse to the following location:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform

Add a new DWORD registry named “BiosPkeyOptions” & set the Value Data to “1”

 

The following error is being received “Installation of the Proof of Purchase from the ACPI table failed. Error code: 0xC004F057”.

This issue can occur due to the build process and key used when initially building the system at the factory. It appears to only occur with Windows Server 2012 and 2012 R2.

The solution is to re-register with the product key received when purchasing the server. This can be done by using slgmgr.vbs

The following will be done from an administrative command prompt

 

Enter slmgr /upk

 

A prompt will appear stating the product key was uninstalled

 

Enter slmgr /cpky

 

A prompt will appear stating the key was cleared from the registry

 

Enter slmgr /rearm

 

A prompt will appear saying the command was successful and a reboot is needed

 

Reboot the system.

Upon logging back into the system after a reboot, enter your product key using slmgr /ipk <product key here>

 

Installing the key is not enough. It needs to be activated.

To activate windows use slmgr /ato

 

slmgr /ato connects to Microsoft clearing house and activates the installed license key.

The error should no longer occur on the system and you should now be activated with the proper license key.