Created
November 23, 2016 18:46
-
-
Save MikeFal/3e9416b5624880b9f36c77deecd2b36d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module SqlServer,FailoverClusters | |
$PrimaryNode = 'PICARD' | |
$nodes = (Get-Cluster -Name $PrimaryNode | Get-ClusterNode).Name | |
$nodes | ForEach-Object {Get-SqlDatabase -ServerInstance $_} | Select-Object Parent,name,LastBackupDate,LastLogBackupDate | Out-GridView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment