Automate the deployment of the entire infrastructure manually created in Stage 1, using modular PowerShell scripts. All scripts are designed to run on Windows Server Core and are prepared for containerization and deployment within Kubernetes.
/project-root
β
βββ automation/
β βββ 00-config.ps1 # Global variables and settings
β βββ 01-post-network.ps1 # IP, DNS, WinRM configuration
β βββ 02-install-roles.ps1 # Installing required roles
β βββ 03-domain-setup-primary.ps1 # Domain creation on SRV-CORE1
β βββ 03-domain-setup-secondary.ps1 # Join second server to domain
β βββ 03b-promote-secondary.ps1 # Promote secondary server to DC
β βββ 04-ad-users-groups.ps1 # Users and groups
β βββ 05-dns-dhcp-primary.ps1 # DNS & DHCP setup (primary)
β βββ 05-dns-dhcp-secondary.ps1 # DNS & DHCP setup (secondary)
β βββ 06-gpo-setup.ps1 # GPO and OU configuration
β βββ 07-dfs-setup.ps1 # DFS and quota setup
β βββ 08-iis-setup.ps1 # Deploy test website
β βββ 09-failover-setup.ps1 # DHCP Failover 50/50
β βββ 10-replication-robocopy-primary.ps1 # Robocopy replication (primary)
β βββ 10-replication-robocopy-secondary.ps1 # Share target folder (secondary)
β
β βββ common/
β β βββ Set-FsrmQuota.ps1 # Quotas via COM API (FSRM)
β
β βββ tests/
β β βββ Test-Infrastructure.ps1 # CLI test script for infrastructure
β
βββ README.md # Main project documentation
Set-FsrmQuota.ps1
index.html
Test-Infrastructure.ps1
validates all deployed services