Show a list of snapshots.
Show-InstantCloneSnapshots [<CommonParameters>] |
Produces a list of all of your snapshots, both local and shared. This is returned as a IEnumerable of DbSnapshot objects, so it can be used with PowerShell for advanced use cases, e.g. deleting all snapshots older than a month with no clones.
<CommonParameters>This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
|
This returns all your snapshots, formatted as a table
|
This removes old unused snapshots. A filter is created for snapshots created before 30th March with no clones. These are then piped to Remove-InstantCloneSnapshot.
You cannot delete shared snapshots with this code. Either rerun with the -SharedSnapshot parameter, or adapt the filter.