1. Join ConfigMgr server to domain
# Example syntax to join domain using DomainJoinLabVM.ps1
# Run from host running Hyper-V
# This script will prompt for appropriate domain credentials

$Parameters = @{
    LabName    = LAB01
    VMHostname = LAB01DC01A
    Username   = Administrator
    Password   = '3d05c285-f4cb-49bc-bc0f-9ee196a31339'
    DomainName = lab01.domain.tld
    Verbose    = $true
}

.\DomainJoinLabVM.ps1 @Parameters
  1. Configure ConfigMgr Server
# Example syntax to configure ConfigMgr Server using ConfigureConfigMgrServer.ps1
# Run from within your ConfigMgr VM
# This script requires no input; it will automatically configure disks, install RSAT tools, install gMSA, and restart

.\ConfigureConfigMgrServer.ps1
  1. Stage media on ConfigMgr server
  1. Install SQL Server 2019
  • setup.exe /IAcceptSQLServerLicenseTerms /ConfigurationFile="F:\SOURCE\SQLConfig.ini"
  1. Install SQL Server 2019 LCU
  • SQLServer2019-KB5004524-x64.exe /qs /IAcceptSQLServerLicenseTerms /Action=Patch /AllInstances
  1. Install SQL Server Management Studio
  • SSMS-Setup-ENU.exe /install /passive
  1. Restart ConfigMgr server