Mastering Windows Server 2022: Automate The Setup Of A Second DC

Mastering Windows Server 2022: Automate The Setup Of A Second DC

sysadmintutorials

55 лет назад

1,667 Просмотров

Are you ready to take your Active Directory Domain Controller skills to the next level by automating the installation and configuration process using PowerShell? This tutorial is perfect for beginners who want to learn how to use PowerShell to achieve the same results as the GUI in a fraction of the time.

Not only is the process faster, but it's also easily repeatable, making it a valuable skill to have. And let's be real, automating tasks with PowerShell is just plain cool.

This tutorial builds on the concepts covered in our original video on setting up a Windows 2022 Primary Active Directory Domain controller using PowerShell. If you haven't watched that yet, please check it out at this link: https://youtu.be/qN1-b-PVvfU before diving in.

Chapters
----------------------
0:00 🎬 Intro
1:00 🎬 Powershell ISE
1:44 🎬 AD Server Script, explaining part 1 (server config)
5:05 🎬 Running the script part 1
5:57 🎬 AD Server Script, explaining part 2 (AD config)
8:34 🎬 Running the script part 2
9:54 🎬 AD Server Script, explaining part 3 (DNS scavenging)
10:50 🎬 Conclusion

Get the script here
------------------------------
https://github.com/sysadmintutorials/windows-server-2022-powershell-2nd-ad-install-config

Recording Equipment
----------------------------------
Logictech C922x Pro - https://amzn.to/2Wo3ShX
Elgato Key Light Professional - https://amzn.to/3r7sTvS
Green Screen - https://amzn.to/37rKHdq

Subscribe & never miss a Video
--------------------------------------------------
https://bit.ly/SysadminTutorialsSubscribe

Follow me on Twitter & Facebook
-----------------------------------------------------
https://twitter.com/systutorials
https://www.facebook.com/sysadmintutorialspage

#microsoft #activedirectory #powershell

Тэги:

#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.
Ссылки и html тэги не поддерживаются


Комментарии:

@tlourey
@tlourey - 09.08.2022 18:53

That intro!!!

Ответить
@andreyanart148
@andreyanart148 - 10.08.2022 14:58

Thanks David for awesome work! You really got me interested in powershell. Greetings from Minsk.

Ответить
@iggysfly7257
@iggysfly7257 - 11.08.2022 04:59

Great episode, thank you for publishing it. PowerShell really lends itself to efficiently manage a box.....Greetings from Los Angeles, CA USA

Ответить
@pascalproulx7094
@pascalproulx7094 - 29.12.2022 17:54

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!

Ответить
@feedlotting9571
@feedlotting9571 - 10.02.2023 11:57

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.

Ответить
@BorisSankisov
@BorisSankisov - 15.01.2024 00:07

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.

Ответить