Created
October 18, 2016 21:57
-
-
Save joeypiccola/315730df66a53eb11f74277514a1b3ee to your computer and use it in GitHub Desktop.
Get all active windows clusters in your domain
This file contains hidden or 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
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