Creating a Domain on Windows Server 2016 / 2019 via PowerShell

The first thing to do with a machine that has a fresh OS on it is renaming it. After renaming and before start configuring, restart the VM:

 rename-computer -newname Mushaaf-DC01
Restart-Computer

After restarting it, log in once again and check the host name:

Leave A Comment

Your email address will not be published. Required fields are marked *