Determine if KMS server is manually set

If you need to verify that Windows Computers/Servers are activated against KMS server by manually specified KMS server and port use following PowerShell command:

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" | Select-Object KeyManagementServiceName,KeyManagementServicePort

If values are empty, Windows is activated automatically by DNS record.

This is useful to know in case you plan to migrate KMS server to different IP address and system administrator specified KMS manually which can cause issues if you changed IP address of KMS server.

To clear out manual configuration of KMS run in CMD as Admin:

slmgr /ckms

To specify manually KMS server run in CMD as Admin:

slmgr /skms [IP ADDRESS or Hostname]:[PORT]
Example: slmgr /skms


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.