Тэги:
#microsoft #windows #server #windows_server_2022 #server_2022 #active_directory #ad #domain #domain_controller #powershell #script #scripting #automation #powershell_ise #ise #dns #remote_desktop #ie_enhanced_security #hostname #host #scavenging #ip_address #gateway #subnet.Комментарии:
That intro!!!
ОтветитьThanks David for awesome work! You really got me interested in powershell. Greetings from Minsk.
ОтветитьGreat episode, thank you for publishing it. PowerShell really lends itself to efficiently manage a box.....Greetings from Los Angeles, CA USA
ОтветитьI tested this script using Windows Server 2022 (SERVER_EVAL_x64FRE_en-us.iso) on VMWare ESXi. Before I ran the script, I updated Windows Server 2022 using Windows Update until the server was up-to-date (21H2, OS Build 20348.1366). I ran into problems running the script: The promotion to the secondary AD Domain controler role failed. My Primary DC was configured using the other PS script you published, using the same steps (Install Win Server, Windows Update, run script).
The problem is the name resolution. On the secondary AD DC, the FQDN of the primary AD DC is not resolved on IPv4.
The solution I found is to disable IPv6 before I ran the script for the 2nd time. Then everything runs smoothly. Once the machine is promoted as the Secondary AD DC, I re-enabled IPv6. I will investigate why this is happening. I suspect the primary DC AAAA record is not set properly in the primary DC script. A crude option to solve this in the script would be to disable IPv6, given IPv6 is not targetted. On my ESXi setup (Ethernet0):
Disable-NetAdapterBinding –InterfaceAlias “Ethernet0” –ComponentID ms_tcpip6
Anyway, manually disabling IPv6 is a simple workaround that allows the usage of this excellent script in Windows Server 2022 21H2.
Keep up the good work!
wonderful, just needs more on additional branch office on different subnets and to communicate efficiently over replication. Please include option to choose our preferred time zone.
ОтветитьThank you so much, I find your videos to be very educational and precise. Super easy to follow and helps me tremendously in my daily work.
Ответить