Querying for SPNs
While troubleshooting connectivity problems in VMM 2012 I had to query AD to check if SPNs have been created for the service account used to run VMM. Here is what I used to query AD:
setspn –l Domain_name\VMM_service_account_name
Incidentally, this showed me that I have two SPNs for this service account. One was for the current VMM server and the second one was for the old VMM server. I had an old VMM server at one time. Then I killed it and created a new VMM server.
I deleted the old SPN using this command:
setspn -d SCVMM/VMM_server_name Domain_name\VMM_service_account_name
PS: Microsoft PSS told me to do this.