Windows Server 2012 R2重命名后,该界面未知

我在我的testing域中重命名了我唯一的DC的计算机名称。 但是,似乎数据库没有完全更新。 我第一次重启后遇到0xc00002e2蓝屏。 然后我试图通过使用ntdsutil – > Compact命令来重buildntds.dit文件来修复它。

服务器终于能正常启动了。 但是,我现在不能使用任何AD服务。 这是什么dcdiag说:

Directory Server Diagnosis Performing initial setup: Trying to find home server... Home Server = dc1 * Identified AD Forest. Done gathering initial info. Doing initial required tests Testing server: SEA\SDC Starting test: Connectivity ......................... SDC passed test Connectivity Doing primary tests Testing server: SEA\SDC Starting test: Advertising Fatal Error:DsGetDcName (SDC) call failed, error 1717 The Locator could not find the server. ......................... SDC failed test Advertising Starting test: FrsEvent ......................... SDC passed test FrsEvent Starting test: DFSREvent The event log DFS Replication on server sdc.sea.nr could not be queried, error 0x6ba "The RPC server is unavailable." ......................... SDC failed test DFSREvent Starting test: SysVolCheck ......................... SDC passed test SysVolCheck Starting test: KccEvent The event log Directory Service on server sdc.sea.nr could not be queried, error 0x6ba "The RPC server is unavailable." ......................... SDC failed test KccEvent Starting test: KnowsOfRoleHolders ......................... SDC passed test KnowsOfRoleHolders Starting test: MachineAccount ......................... SDC passed test MachineAccount Starting test: NCSecDesc ......................... SDC passed test NCSecDesc Starting test: NetLogons Unable to connect to the NETLOGON share! (\\SDC\netlogon) [SDC] An net use or LsaPolicy operation failed with error 67, The network name cannot be found.. ......................... SDC failed test NetLogons Starting test: ObjectsReplicated ......................... SDC passed test ObjectsReplicated Starting test: Replications ......................... SDC passed test Replications Starting test: RidManager ......................... SDC passed test RidManager Starting test: Services Could not open Remote ipc to [sdc.sea.nr]: error 0x43 "The network name cannot be found." ......................... SDC failed test Services Starting test: SystemLog The event log System on server sdc.sea.nr could not be queried, error 0x6ba "The RPC server is unavailabl ......................... SDC failed test SystemLog Starting test: VerifyReferences ......................... SDC passed test VerifyReferences Running partition tests on : ForestDnsZones Starting test: CheckSDRefDom ......................... ForestDnsZones passed test CheckSDRefDom Starting test: CrossRefValidation ......................... ForestDnsZones passed test CrossRefValidation Running partition tests on : DomainDnsZones Starting test: CheckSDRefDom ......................... DomainDnsZones passed test CheckSDRefDom Starting test: CrossRefValidation ......................... DomainDnsZones passed test CrossRefValidation Running partition tests on : Schema Starting test: CheckSDRefDom ......................... Schema passed test CheckSDRefDom Starting test: CrossRefValidation ......................... Schema passed test CrossRefValidation Running partition tests on : Configuration Starting test: CheckSDRefDom ......................... Configuration passed test CheckSDRefDom Starting test: CrossRefValidation ......................... Configuration passed test CrossRefValidation Running partition tests on : sea Starting test: CheckSDRefDom ......................... sea passed test CheckSDRefDom Starting test: CrossRefValidation ......................... sea passed test CrossRefValidation Running enterprise tests on : sea.nr Starting test: LocatorCheck Warning: DcGetDcName(GC_SERVER_REQUIRED) call failed, error 1717 A Global Catalog Server could not be located - All GC's are down. Warning: DcGetDcName(PDC_REQUIRED) call failed, error 1717 A Primary Domain Controller could not be located. The server holding the PDC role is down. Warning: DcGetDcName(TIME_SERVER) call failed, error 1717 A Time Server could not be located. The server holding the PDC role is down. Warning: DcGetDcName(GOOD_TIME_SERVER_PREFERRED) call failed, error 1717 A Good Time Server could not be located. Warning: DcGetDcName(KDC_REQUIRED) call failed, error 1717 A KDC could not be located - All the KDCs are down. ......................... sea.nr failed test LocatorCheck Starting test: Intersite ......................... sea.nr passed test Intersite 

似乎服务器正在尝试连接到sdc.sea.nr这是我想要重命名的名称。 但目前计算机名仍然显示旧的,我不能在本地DNS服务器添加Alogging。 我应该如何解决这个问题?

我find了解决办法:

  1. 修改registry,更改所有的计算机名称:

    HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ ComputerName \ ComputerName项名称:ComputerName

    HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ ComputerName \ ActiveComputerName项名称:ComputerName

    HKey_Local_Machine \ System \ CurrentControlSet \ Services \ TCPIP \ Parameters键名称:NVHostName

  2. 编辑

    C:\ WINDOWS \ SYSTEM32 \ DRIVERS \ ETC \主机

    添加我的IP地址和计算机名称。

  3. 重启。