Reply to Message

View discussion in a popup

Replying to:
Cyberfed27
Hot Shot
Hot Shot

I have a powershell script that emails me daily each VM that has a snapshot and the snapshot name. It integrates with powerCLI.

I use it to clean up stale/obsolete snapshots other admins forget about.

Get-VM | Select-Object -ExpandProperty Name | Out-File "C:\scripts\VMList.txt"

Get-Snapshot -VM (Get-Content C:\scripts\VMList.txt) | Select-Object VM,Name | Format-List | Out-file C:\scripts\ssmail.txt