Retrieves the list of database snapshot available, along with their base (the db they are the snapshot of), Size in MB, creation time and other details.
To return a custom object displaying Server, Database, DatabaseCreated, SnapshotOf, SizeMB, DatabaseCreated, IsReadCommittedSnapshotOn, SnapshotIsolationState
Get-DbaDbSnapshot -SqlServer sqlserver2014a
To return information for database snapshots having HR and Accounting as base dbs
Get-DbaDbSnapshot -SqlServer sqlserver2014a -Databases HR, Accounting
To return information for database snapshots HR_snapshot and Accounting_snapshot
Get-DbaDbSnapshot -SqlServer sqlserver2014a -Snapshots HR_snapshot, Accounting_snapshot
This command was created by Simone Bizzotto. You can find Simone on LinkedIn.