Register SPN for the service user

The SPN will be registered for the service user serving the IIS website.

Prerequisites

  • You need to run the commands with administrative permissions. Open PowerShell via Run as administrator.
  • The Active Directory Domain Services Remote Server Administration Tools (RSAT) are installed.

Example values

  • SPN: webapp.int.virtinc.com
  • Service user: srv-webapp

Instruction

Run the following commands:

 
Terminal box
# List the SPNs registered
# for the service user
setspn –L srv-webapp

# Register the SPN for
# the service user
setspn –A http/webapp.int.virtinc.com `
  srv-webapp