How to cleanly uninstall the Key Management Service from within the KMS host?

Answered How to cleanly uninstall the Key Management Service from within the KMS host?

  • Friday, November 16, 2012 3:22 PM
     
     
    I had used the command line "cscript C:\windows\system32\slmgr.vbs /ipk<KmsKey>"to install and start the Key Management Service on a server which had Windows Server 2008 R2 running on it.  And I did this just for a purpose of test.

    The server is a member server of a domain.

    Now I want to uninstall the Key Management Service, how to?

    Thanks!

All Replies

  • Friday, November 16, 2012 5:59 PM
     
     Answered
    Uninstall the KMS host key first by running the following command:   
     
    slmgr –upk

    Then install the default kms key by running the following command:

    slmgr /ipk [KMS Client Setup Key]

    Delete the record from the DNS:

    Open DNS console:

    Expand _tcp node under the domain.com. There will be a record _VLMCS. Delete this record.

    Now The KMS server is uninstalled.

    • Marked As Answer by Long Bo Saturday, November 17, 2012 1:29 AM
    •  
  • Saturday, November 17, 2012 1:33 AM
     
     
    Xie xie!