KMS caching

KMS caching

By default a KMS client will cache the KMS host that it was able to activate with and will communicate directly with this host when it is time to reactivate (instead of querying DNS). If the client cannot contact the cached KMS host, discovery with DNS will be used.

You are able to disable the caching with the following command:

slmgr /ckhc (or cscript c:windowssystem32slmgr.vbs /ckhc)

image

image

To enable caching again use the command:

slmgr /skhc (or cscript c:windowssystem32slmgr.vbs /skhc)

You can verify if caching is active with the command:

slmgr /dli (or cscript c:windowssystem32slmgr.vbs /dli)

image

Office 2010 will also cache the KMS server used, but in order to disable this you will need to set a registry key:

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftOfficeSoftwareProtectionPlatform]
“DisableKeyManagementServiceHostCaching”=dword:00000001

image

Table of Contents

Share this post
Search blog posts
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.
Modern Workplace consultant and a Microsoft MVP in Windows and Devices for IT.

Infrastructure architect with focus on Windows Client management & security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

follow us in feedly
Categories

Follow on SoMe