Phase 5: AD role scripts, WinRM provisioning and lab wordlist

dc01 promotes the forest then runs a startup-scheduled post stage for OUs,
users, groups, the SPN on svc_backup, pre-auth disabled on j.contractor,
GenericAll over t.smith, the www A record, flags and advanced audit policy.
fs01 installs IIS, shares the web root's public/ as \\FS01\Public and joins.
ws01 joins, then adds WS Admins to local Administrators.

provision uploads over WinRM, starts scripts detached, waits on a .done
marker and survives the promotion reboot.
This commit is contained in:
2026-10-21 19:29:51 -04:00
parent a38acd3946
commit 279f4cc547
13 changed files with 2570 additions and 6 deletions
+4 -2
View File
@@ -20,6 +20,8 @@ source "$LAB_DIR/lib/cmd_isos.sh"
source "$LAB_DIR/lib/cmd_seeds.sh"
# shellcheck source=lib/cmd_build.sh
source "$LAB_DIR/lib/cmd_build.sh"
# shellcheck source=lib/cmd_provision.sh
source "$LAB_DIR/lib/cmd_provision.sh"
usage() {
cat <<EOF
@@ -39,7 +41,7 @@ Commands:
isos download the Windows media into LAB_ISO_CACHE
seeds render unattend files and pack the seed ISOs
build create VMs, run unattended installs (phase 3)
provision run role scripts over WinRM (phase 5)
provision run role scripts over WinRM (--role NAME for one)
snapshot freeze a clean baseline (phase 8)
up, down start / stop the VMs (phase 3)
reset revert to baseline (phase 8)
@@ -142,7 +144,7 @@ case $cmd in
down) cmd_down "$@" ;;
status) cmd_status "$@" ;;
vnc) cmd_vnc "$@" ;;
provision) planned provision "phase 5" ;;
provision) cmd_provision "$@" ;;
snapshot) planned snapshot "phase 8" ;;
reset) planned reset "phase 8" ;;
doctor) planned doctor "phase 8" ;;