Has anyone had any luck with querying/changing SPNs on a Windows domain? Most of the hits on Google are SQL related: I can\'t find any information on how to do this myself.
You can use Search.VBS in the support tools to search for duplicate SPNs:
"C:\Program Files\Support Tools\search.vbs" "LDAP://DC=Your,dc=Domain,dc=Here" /C:"(serviceprincipalname=K2Server/jonathand-vpc:5252)" /S:Subtree /P:DistinguishedName
It looks like this information is stored in the servicePrincipalName
AD attribute. See this page for more info, in particular the "Search using LDIFDE" section.