List the Snapshot Job History

Microsoft Platform Guide

Audience
Public
Source Type
Documentation

Use this cmdlet to get the list of snapshots that were invoked. A where statement can narrow down the results. The first object will be the most recent snapshot.

$snaps = Get-PsbSnapshotJobHistory -FlashArrayAddress $FADNS -FlashArrayCredential $FlashArrayCredential -VolumeSetName volset136

When enumerating snapshots that were replicated to the declared -FlashArrayAddress, the correct -VolumeSetName is critical since a query for the volume set will return nothing since the only the replicated snapshots will exist, not the original volumes which are the source of those snapshots. By default only snapshots created by utilizing the Invoke-PsbSnapshotJob cmdlet will be shown. To show all snapshots, such as those created by Protection Group policies, include the -IncludeNonSDKSnapshots parameter.