[英]How to change computer's canonical/displayed name in Active Directory?
I have an AD with 71 computers. 我有71台计算机的AD。
However, there are actually less than 50 physical computers, so I'm doing some cleanup. 但是,实际上少于50台物理计算机,因此我正在做一些清理。 But, up until now when renaming PC's, I've only renamed them at the workstation through
Control Panel->System
. 但是,直到现在,当重命名PC时,我只在工作站上通过
Control Panel->System
重命名了它们。
So, the displayed name of computers in AD does not match the workstation's computer name. 因此,AD中计算机的显示名称与工作站的计算机名称不匹配。 The displayed name, the " Canonical name of object " under
Properties->Object
, and the cn
attribute in Attribute Editor are all the old name, while the "Computer name" and "DNS name" under Properties->General
are the updated name also found at the workstation. 显示的名称,
Properties->Object
下的“ 对象的规范名称 ”以及Attribute Editor中的cn
属性均为旧名称,而Properties->General
下的“计算机名称”和“ DNS名称”均为更新名称。也可以在工作站上找到。
How do I reconcile the two different sets of names for each computer? 如何为每台计算机调和两组不同的名称? I cannot edit the "Canonical name of object" in Properties, nor can I edit the
cn
attribute: 我无法在“属性”中编辑“对象的规范名称”,也无法编辑
cn
属性:
Operation failed.
手术失败。 Error code: 0x2016;
错误代码:0x2016; The directory service cannot perform the requested operation on the RDN attribute of an object.
目录服务无法对对象的RDN属性执行请求的操作。 00002016: Modify of RDN 'CN' on CN=COMP,OU=TEST,DC=DOMAIN,DC=local not permitted, must use 'rename operation instead.
00002016:不允许在CN = COMP,OU = TEST,DC = DOMAIN,DC = local上修改RDN'CN',而必须使用“重命名”操作。
Going forward, what is the proper way to rename a PC so that it updates both at the workstation and throughout AD? 展望未来,重命名PC以便在工作站和整个AD上都进行更新的正确方法是什么?
有一个命令行可用(请参考: https : //technet.microsoft.com/en-us/library/cc788029.aspx ),人们将使用该命令行来自动重命名加入域的工作站。
It's a two-step process: first you rename the computer, and then rename its OU/CN. 这是一个两步过程:首先重命名计算机,然后重命名其OU / CN。
netdom renamecomputer
doesn't rename the AD object, and I assume that Rename-Computer
doesn't either ( please edit this answer if that's incorrect). netdom renamecomputer
不会重命名AD对象,并且我认为Rename-Computer
也不会Rename-Computer
(如果不正确, 请编辑此答案)。
PowerShell 电源外壳
CMD CMD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.