ComputerPrincipal.ServicePrincipalNames Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a collection of the Service Principal Names (SPN) for the computer account.

Namespace:   System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public PrincipalValueCollection<string> ServicePrincipalNames { get; }

Property Value

Type: System.DirectoryServices.AccountManagement.PrincipalValueCollection<String>

A collection of SPNs that specify the names of the accounts registered for this computer. The syntax for the SPN depends on the underlying store.

.NET Framework
Available since 3.5

ComputerPrincipal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top