大网数据广告活动
启动与系统组件

Missing or incorrect service principal names

· 52CE 我爱测

Fixes authentication and authorization problems in System Center Virtual Machine Manager due to missing or incorrect service principal names.

This article helps you fix authentication and authorization problems in System Center Virtual Machine Manager due to missing or incorrect service principal names (SPNs).

Original product version:   Microsoft System Center 2012 R2 Virtual Machine Manager
Original KB number:   2961630

Symptoms

You may encounter various problems with Microsoft System Center 2012 Virtual Machine Manager (VMM 2012) that are related to authentication and authorization if the required service principal names (SPNs) are missing or incorrect.

Cause

This can occur if the missing or incorrect service principal names (SPNs) cause delegation to fail.

Resolution

To resolve this issue, you can use the setspn command to check for duplicate SPNs and to create missing SPNs if this is necessary.

Note: Not all SPNs may be required. The requirements will vary based on the server roles that are installed.

For virtual console support for Hyper-V hosts (VMConnect.exe), the following SPNs are required on Hyper-V hosts:

  • setspn -s computername "Microsoft Virtual Console Service/hostname"
  • setspn -s computername "Microsoft Virtual Console Service/hostname.fqdn.etc"

For RDP support, the following SPNs are required:

  • setspn -s computername TERMSRV/hostname.fqdn.etc
  • setspn -s computername TERMSRV/hostname

For the host, the following SPNs are required:

  • setspn -s computername HOST/hostname
  • setspn -s computername HOST/hostname.fqdn.etc

For HTTP, the following SPNs may be needed for authentication on SSP if the VMM server is using remote SQL:

  • setspn -s computername HTTP/hostname.fqdn.etc
  • setspn -s computername HTTP/hostname

For SQL, requirements depend on port and instance type.

For a named instance, the following SPNs are required:

  • setspn -s computername MSSQLSvc/hostname.fqdn.etc:Port
  • setspn -s computername MSSQLSvc/hostname.fqdn.etc:InstanceName

For a default instance, the following SPNs are required:

  • setspn -s computername MSSQLSvc/hostname:1433
  • setspn -s computername MSSQLSvc/hostname.fqdn.etc:1433

For more information, see the following resources:

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 04/09/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。