Posted On December 22, 2021

PowerShell: Quick Snippet to Remove Virtual Machine Snapshots in VMM

kimconnect 0 comments
blog.KimConnect.com >> Codes , Virtualization >> PowerShell: Quick Snippet to Remove Virtual Machine Snapshots in VMM
$vmNames=@(
    'MACHINE1',
    'MACHINE2'
)
foreach($vmName in $vmNames){
    $checkpoint = Get-SCVMCheckpoint -VM $vmName
    if($checkpoint){$checkpoint|%{Remove-SCVMCheckpoint -VMCheckpoint $_ -Confirm:$false}}else{write-host "$vmName is skipped."}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Convert Between Various SSL Certificate Formats

# Install Choco (look for instructions in this blog)# Install openssl.lightchoco install openssl.light -y #…

VMware ESX Installation Procedures

1. Install ESX from ISO Putty Rufus MWware-VCSA-all-6.0.0-2562643.iso VMware-viclient.exe KVM console (ie. Lantronix) 2. Install…

Some AWS Quick Notes

https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.htmlOpen Virtual Appliance (OVA) image format, which is compatible with VMware vSphere versions 4 and…