修改域控制器计算机名不能简单的打开计算机属性直接进行修改,涉及域内名称解析,修改不当可能会造成找不到域控制器的麻烦。建议升级为控制器前先修改计算机名并重启计算机,如的确需要修改域控制器计算机名可以使用netdom命令。在Powershell命令行提示符下:
# Show all computer names of a DC netdowm computername dc02.cloud.z.com /enumerate # Change computer name of a DC from dc02 to dc03 netdom computername dc02.cloud.z.com /add:dc03.cloud.z.com netdom computername dc02.cloud.z.com /makeprimary: dc03.cloud.z.com # Restart the computer netdom computername dc03.cloud.z.com /remove:dc02.cloud.z.com