PowerShell PowerCLI Snapshots

I only had to use once, when I had data corruption at the LUN level.
The VM would lock up during the attempt to remove a snapshot from a Veeam backup.
To use optional "-Kill" parameter, you need to have a direct connection to the ESXi host.


        $VMHosts=Read-Host "Enter VMHost"
        Get-VMHost -Server $VMHosts | Get-VM
        $VMKILL=Read-Host "Enter VM Name"
        Stop-VM -Kill $VMKILL -Confirm:$false        


2020 | Scott W. Head  |  Sr. Systems Admin | Certified Microsoft Windows Server Administrator