Skip to content

Instantly share code, notes, and snippets.

@joeypiccola
Created October 18, 2016 21:57
Show Gist options
  • Save joeypiccola/315730df66a53eb11f74277514a1b3ee to your computer and use it in GitHub Desktop.
Save joeypiccola/315730df66a53eb11f74277514a1b3ee to your computer and use it in GitHub Desktop.
Get all active windows clusters in your domain
Get-Cluster -Domain mydomain.com | %{Get-ADComputer -properties passwordlastset $_.name | ?{$_.enabled -eq $true} | select Name, PasswordLastSet, Enabled, @{Name="Nodes";Expression={(Get-ClusterNode -Cluster $_.name) -join ', '}}, @{Name="ClusterIP";Expression={(Resolve-DnsName $_.name).ipaddress}}} | ft -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment