Daily Archives: 28/05/2010

PowerShell Show VM having snapshots

By default a param minus 30 days. Save it to a *.ps1 file and it ready to use. param ($Age = 30) Connect-VIServer localhost$vm = Get-VM$snapshots = Get-Snapshot -VM $vmWrite-Host -ForegroundColor Red “Old snapshots found:”foreach    ($snap in $snapshots) {    if … Continue reading

Posted in Esx4, PowerShell, VMWare | Tagged , | Leave a comment