Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Languages

πŸ‡¬πŸ‡§ English (current) | πŸ‡«πŸ‡· FranΓ§ais

AutoDC

Full unattended deployment of a Windows Server domain controller (ADDS + DNS + DHCP) from a single graphical interface.

Why this script?

Setting up a domain controller by hand chains together repetitive steps interrupted by reboots (network β†’ roles β†’ promotion β†’ DNS/DHCP). AutoDC gathers all the input in a single window, then runs the rest on its own while handling the reboots. Ideal for quickly building and rebuilding DCs in a lab on VMs.

AutoDC main window

Advantages

  • All in one pass, no intervention after the input (reboots handled, automatic resume).
  • Windows Server wizard-style interface, with built-in validation and a command preview before execution.
  • Reusable configuration (import/export); passwords are never stored in clear text.

Limitations

  • Windows Server 2019 / 2022 / 2025 only (PowerShell 5.1+).
  • Meant for labs, not for a critical production environment.
  • The server reboots automatically β†’ run it from the VM console, not over RDP.
  • AutoDC installs the DC but does not populate the domain (OUs, users, groups) β€” that is the job of its companion tool ADFlow.

Quick start

  1. Copy Start-AutoDC.ps1 to the server, then right-click β†’ Run with PowerShell (it elevates to administrator on its own).
  2. Fill in the tabs (Server β†’ Network β†’ Roles β†’ ADDS/DNS/DHCP β†’ Prerequisites) and click Launch.
  3. Let it run: the configuration is applied, the server reboots once or twice and finishes on its own. A window shows the live progress at logon.
# From an administrator console, in the script's folder:
powershell -ExecutionPolicy Bypass -File .\Start-AutoDC.ps1

⚠️ The server reboots during deployment: run it from the VM console (a network reconfiguration can drop an RDP session).

Full walkthrough

Command preview

How it works

The deployment goes through several phases that survive reboots thanks to self-cleaning scheduled tasks:

Interactive  β†’  (rename + reboot)  β†’  Promote (ADDS promotion + reboot)  β†’  Configure (DNS + DHCP)

Secrets (DSRM, domain admin) are encrypted with DPAPI (machine scope) for the duration of the reboots, then wiped β€” never in clear text on disk nor in the exported configuration file.

Author

Taeckens.M β€” see also ADFlow, the companion tool that populates the domain (OUs, users, groups…) from a simple definition file.

About

Unattended GUI tool to deploy a Windows Server domain controller (ADDS + DNS + DHCP) from a single self-elevating PowerShell script, with automatic reboot-resume.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages