CPE Status (t-24hrs to current): no DEGRADATION in performance or availability THROUGHOUT the fleet | Status: Green

$folderName = "Backup " + (Get-Date).ToString("yyyy-MM-dd")

$backupFolder = "e:\VM Backups\$folderName"

$vmList = @("ts1", "dc1", "firewall")

Get-VM $vmList | Where-Object { $_.State -eq 'Running' } | Stop-VM -Save

Get-VM | Export-VM -Path $backupfolder

# Start the Firewall VM first

Start-VM -Name "Firewall"

$VM = Get-VM -Name "Firewall"

while ($VM.State -ne 'Running') {

Start-Sleep -Seconds 10

$VM = Get-VM -Name "Firewall"

}

Start-Sleep -Seconds 10 # Allow time for Firewall services to initialize

# Start the Domain Controller VM first

Start-VM -Name "DC1"

$VM = Get-VM -Name "DC1"

while ($VM.State -ne 'Running') {

Start-Sleep -Seconds 10

$VM = Get-VM -Name "DC1"

}

Start-Sleep -Seconds 10 # Allow time for AD services to initialize

# Start the Application Server VM

Start-VM -Name "TS1"

$VM = Get-VM -Name "TS1"

while ($VM.State -ne 'Running') {

Start-Sleep -Seconds 10

$VM = Get-VM -Name "TS1"

}