Authorize DHCP server in Active Directory if domain joined.
The lab includes this wording:
Authorize the DHCP server so it can lease addresses in an AD domain environment.
If your lab is not domain joined, document that authorization was not applicable and continue only if instructed.
The commands included are:
# Run on the DHCP server. Replace values as needed.
$ServerIP = "192.168.XX.10"
$ServerFQDN = "$env:COMPUTERNAME.powershell.local"
Add-DhcpServerInDC -DnsName $ServerFQDN -IPAddress $ServerIP
Get-DhcpServerInDC
the server listed as an authorized DHCP server.
verify the server is domain joined:
Get-CimInstance Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomain
And after authorization:
Get-DhcpServerInDC
That makes the evidence clearer.
