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: Renaming a System File

System files are typically owned by the TrustedInstaller account and protected from deletion or changes.…

Linux: How to Manually Create a USB Bootable Drive for ESXi

Step 1: Find the USB mount root@kimlinux:/home/kim# ls /dev/s*/dev/sda /dev/sdb1 /dev/sdb3 /dev/sdc1 /dev/sg1 /dev/snapshot /dev/stdin/dev/sdb…

Installing IBM VPN Client

On a Linux Machine # Install VPN Client shellScript=https://support.arraynetworks.net/prx/001/http/supportportal.arraynetworks.net/downloads/pkg_9_4_0_385/MP_Linux_1.2.9/MotionPro_Linux_Ubuntu_x64_build-8.sh cd Desktop wget $shellScript sudo ./MotionPro_Linux_Ubuntu_x64_build-8.sh…