How to Retrieve SPNs from the Directory

Article translations Article translations
Article ID: 298718 - View products that this article applies to.
This article was previously published under Q298718
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

Summary

With the Setspn tool that is included in the Windows 2000 Server Resource Kit, you cannot export Service Principal Names (SPNs) to a text file for troubleshooting purposes. Dsstore is another (command-line) tool from the Resource Kit that assists in managing Enterprise Public Key Integration and which therefore displays SPN information.

More information

The following command line parameters specifically recall SPN information and parse it to a text file:
DSSTORE -macobj domainname\servername$ >c:\my_spns.txt
For example, if you run the following command syntax:
DSSTORE -macobj stuhud\studc01$
The following results are displayed:
Attribute : dNSHostName
stuDC01.stuhud.pri

Attribute : objectCategory
CN=Computer,CN=Schema,CN=Configuration,DC=stuhud,DC=pri

Attribute : sAMAccountName
STUDC01$

Attribute : servicePrincipalName
GC/stuDC01.stuhud.pri/stuhud.pri
HOST/stuDC01.stuhud.pri/STUHUD
HOST/STUDC01
HOST/stuDC01.stuhud.pri
HOST/stuDC01.stuhud.pri/stuhud.pri
E3514235-4B06-11D1-AB04-00C04FC2DCD2/6797dfe9-8a20-4096-81c2-20a7503aaa7c/stuhud.pri
LDAP/6797dfe9-8a20-4096-81c2-20a7503aaa7c._msdcs.stuhud.pri
LDAP/stuDC01.stuhud.pri/STUHUD
LDAP/STUDC01
LDAP/stuDC01.stuhud.pri
LDAP/stuDC01.stuhud.pri/stuhud.pri
NtFrs-88f5d2bd-b646-11d2-a6d3-00c04fc9b232/stuDC01.stuhud.pri
DNS/stuDC01.stuhud.pri

Attribute : userAccountControl
532480

Group Memberships:
Domain Controllers

Properties

Article ID: 298718 - Last Review: October 26, 2013 - Revision: 4.0
Applies to
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbnosurvey kbarchive kbhowto kbkerberos kbppkey KB298718

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com