ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Setup Server 2022 as a DC in a new Forest & Domain

    IT Discussion
    server 2022 windows domain domain controller server setup microsoft
    1
    1
    262
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      Had a need to deploy a brand new Windows AD network.

      • Install Server 2022.
        • I added the Desktop Environment, as I will not be the main manager down the line.
      • Log in with the Administrator account and set a password
      • Run the updates and reboot
      • Activate Windows
      • Run more updates and reboot
      • Launch PowerShell as an Admin
      • Rename the system
        • Server 2022 defaults to a random name on install.
          Rename-Computer -NewName dc
      • Reboot to apply
        Restart-Computer
      • Login as Administrator
      • Start PowerShell with Admin rights again
      • Set a Static IP Address
        • Use something appropriate for your network
        • Assumption here is that you only have one NIC
          New-NetIPAddress -IPAddress 10.101.0.21 -DefaultGateway 10.101.0.1 -PrefixLength 24 -InterfaceIndex (Get-NetAdapter).InterfaceIndex
      • Set DNS to itself on the adapter.
        Set-DNSClientServerAddress -InterfaceIndex (Get-NetAdapter).InterfaceIndex -ServerAddresses 10.101.0.21
      • Install AD Feature and tools
        Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
        2843b1ed-569c-49b0-b9d4-f98289c6de31-image.png
      • Create the New Forest and Domain.
        Install-ADDSForest -DomainName ad.domain.com -DomainNetBIOSName AD -InstallDNS
      • You will need to set a Administrator password for Safe Mode
        7e71bf7d-aec1-4e14-b1dc-20065a50456c-image.png
      • Then Answer yes, you will see some warnings.
        38869ce9-1fa8-4b86-882f-f83128c8be38-image.png
      • After which, you will be forcibly rebooted
      • Now you can log in to your new DC
        525d2703-2cfe-4b98-af67-89e68bb11404-image.png
      1 Reply Last reply Reply Quote 4
      • 1 / 1
      • First post
        Last post