Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$DBs = Invoke-SQLQuery -Instance $Instance -Database Master -MultiSubnetFailover -Query $DBsQuery | Select ID,Name,FileSizeMB,LogSizeMB,LastBackup
#Now display
$Selected = @($DBs | Out-GridView -Title "Databases on $Instance - Select databases/logs you wish to shrink" -OutputMode Multiple)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment