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

根据 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.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...