Use case · Virtualisation
Stop the test VMs. Only the test VMs.
Hyper-V and VMware PowerCLI scripts, checked against the VMs you meant to touch.
No card required. Your script is never executed.
Three patterns we flag
Stops every VM on the host
Get-VM | Stop-VM -ForceRemoves every snapshot, including the rollback point
Get-VM | Get-Snapshot | Remove-Snapshot -Confirm:$falseDeletes VMs and their disks
Get-VM -Name test* | Remove-VM -DeletePermanently -Confirm:$false
Sample: stop-test-vms.ps1
Real pattern, synthetic script. Unfiltered collection target.
What we check
- Unfiltered Get-VM pipelines
- Snapshot and disk deletion
- Forced power-off
- Intent vs name filters
Check the next script before it runs.