How to Check SPNs. Use the setspn -l hostname command at a command prompt to display a list of the SPNs that a computer has registered with Active Directory, where hostname is the actual hostname of the computer object you want to query.