加入收藏 | 设为首页 | 会员中心 | 我要投稿 江门站长网 (https://www.0750zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

windows – “setspn -s”与“setspn -a”

发布时间:2020-12-24 20:52:59 所属栏目:Windows 来源:网络整理
导读:根据 Setspn Overview,不鼓励使用Setspn -A添加SPN记录,建议使用Setspn -S代替. 据说Setspn -S在添加新SPN之前检查SPN是否已经存在. Setspn -A不执行此检查. Although you can use Setspn -A to add an SPN,you should use Setspn -S instead because -S w

根据 Setspn Overview,不鼓励使用Setspn -A添加SPN记录,建议使用Setspn -S代替.

据说Setspn -S在添加新SPN之前检查SPN是否已经存在. Setspn -A不执行此检查.

Although you can use Setspn -A to add an SPN,you should use Setspn -S
instead because -S will verify that there are no duplicate SPNs.

但是在Windows Server 2012上,我看到Setspn -S和Setspn -A的行为方式相同:如果存在帐户的SPN记录,那么我使用-A和-S参数都会失败.

Setspn -S和Setspn -A之间有什么真正的区别吗?

不再.你回答了自己的问题.显然已经决定不再需要原来的-A功能,不再检查重复…但是你不能随便扯掉-A out,因为某人的脚本在某处使用-A会打破.

添加一些官方文档来支持我的声明:

http://technet.microsoft.com/en-us/library/hh831747.aspx

Changes to SetSPN


In Windows Server 2012,SetSPN will no longer be able to register
duplicate SPNs in a domain. When SetSPN –a is used,SetSPN will treat
it as SetSPN –s.

For eveloping information about SetSPN,see Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe) on the TechNet Wiki. For the command reference,see Setspn in the TechNet Library.

(编辑:江门站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!