环境配置信息:
| 节点名 | CPU | 内存 | 磁盘 | IP | 系统 | 
| AD01 | 2核 | 2G | 40G | 172.18.100.1 | Windows Server 2016 | 
| AD02 | 2核 | 2G | 40G | 172.18.100.2 | Windows Server 2016 | 
网络拓扑:
一、修改计算机名和IP
1、如果你也是使用虚拟机克隆AD01得到的AD02节点,那么这时候还需借助微软本身的封装工具来修改系统的SID
Windows PowerShell版权所有 (C) Microsoft Corporation。保留所有权利。PS C:\WINDOWS\system32> Invoke-Expression 'C:\Windows\System32\Sysprep\Sysprep.exe /generalize /oobe /reboot /quiet' | 
Windows PowerShell版权所有 (C) 2016 Microsoft Corporation。保留所有权利。PS C:\Windows\system32> $ENV:ComputerNameWIN-D1EJHF5UNRTPS C:\Windows\system32> Rename-Computer -NewName "AD02"警告: 所做的更改将在重新启动计算机 WIN-D1EJHF5UNRT 后生效。PS C:\Windows\system32>PS C:\Windows\system32> Get-NetIPConfigurationInterfaceAlias       : Ethernet0InterfaceIndex       : 3InterfaceDescription : Intel(R) 82574L Gigabit Network ConnectionNetProfile.Name      : 未识别的网络IPv4Address          : 172.18.128.0IPv6DefaultGateway   :IPv4DefaultGateway   :DNSServer            : 172.18.0.1PS C:\Windows\system32> Remove-NetIPAddress -InterfaceIndex 3确认是否确实要执行此操作?Performing operation "Remove" on Target "NetIPAddress -IPv6Address fe80::b55c:3d21:e5e1:c37d%3 -InterfaceIndex 3 -Store Active"[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“Y”): y确认是否确实要执行此操作?Performing operation "Remove" on Target "NetIPAddress -IPv4Address 172.18.128.0 -InterfaceIndex 3 -Store Active"[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“Y”): yPS C:\Windows\system32> New-NetIPAddress -InterfaceIndex 3 -IpAddress 172.18.100.2 -Prefixlength 16 -DefaultGateway 172.18.0.1IPAddress         : 172.18.100.2InterfaceIndex    : 3InterfaceAlias    : Ethernet0AddressFamily     : IPv4Type              : UnicastPrefixLength      : 16PrefixOrigin      : ManualSuffixOrigin      : ManualAddressState      : TentativeValidLifetime     : Infinite ([TimeSpan]::MaxValue)PreferredLifetime : Infinite ([TimeSpan]::MaxValue)SkipAsSource      : FalsePolicyStore       : ActiveStoreIPAddress         : 172.18.100.2InterfaceIndex    : 3InterfaceAlias    : Ethernet0AddressFamily     : IPv4Type              : UnicastPrefixLength      : 16PrefixOrigin      : ManualSuffixOrigin      : ManualAddressState      : InvalidValidLifetime     : Infinite ([TimeSpan]::MaxValue)PreferredLifetime : Infinite ([TimeSpan]::MaxValue)SkipAsSource      : FalsePolicyStore       : PersistentStorePS C:\Windows\system32> Set-DnsClientServerAddress -InterfaceIndex 3 -ServerAddresses ("172.18.100.2","172.18.100.1")PS C:\Windows\system32> Get-NetIPConfigurationInterfaceAlias       : Ethernet0InterfaceIndex       : 3InterfaceDescription : Intel(R) 82574L Gigabit Network ConnectionNetProfile.Name      : 网络IPv4Address          : 172.18.100.2IPv6DefaultGateway   :IPv4DefaultGateway   : 172.18.0.1DNSServer            : 172.18.100.2                       172.18.100.1PS C:\Windows\system32> | 
然后重启系统
二:下面开始安装从节点的域控
在”服务器管理器“右上的小旗子标签上点击感叹号的小三角,让后在弹出的界面选择”将此服务器提升为域控制器“
将域控制器添加到现有域,选择域:dwhdcluster.org,用域账户DWHDADUser作为凭据。
选择全局编录, 站点名称选择Default-First-Site-Name,并且设置DSRM密码选择全局编录, 站点名称选择Default-First-Site-Name,并且设置DSRM密码
安装完成后,计算机自动注销当前登录。
以上设置好了 同样检查AD01上配置,使之配置一样。
































