Aston-HyperV-Code/Host/ALL-Kill.ps1

18 lines
491 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Stop-VM RTR* -turnoff
Stop-VM SRV* -turnoff
Remove-VM RTR* -Force
Remove-VM SRV* -Force
#Dismount-VHD Path d:\VHD\SRV-01.vhdx
#Dismount-VHD Path d:\VHD\SRV-02.vhdx
#Dismount-VHD Path d:\VHD\SRV-03.vhdx
#Dismount-VHD Path d:\VHD\RTR-01.vhdx
#Dismount-VHD Path d:\VHD\RTR-02.vhdx
#Dismount-VHD Path d:\VHD\RTR-03.vhdx
#Dismount-VHD Path d:\VHD\CLI-01.vhdx
#Dismount-VHD Path d:\VHD\CLI-02.vhdx
#Dismount-VHD Path d:\VHD\CLI-03.vhdx
del d:\VHD\RTR*
del d:\VHD\SRV*