Register SPN for the service user

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

Procedure-related prerequisites

  • You need to run the commands with administrative permissions. Open PowerShell via Run as administrator.
  • You need to be logged in as a domain administrator on a domain controller.

Example values

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

Instruction

  1. Run the following commands:
  2. copy
    # List the SPNs registered
    # for the service user
    setspn –L srv-webapp
    
    # Register the SPN for
    # the service user
    setspn –A http/int.virtinc.com `
      srv-webapp