Last active
March 10, 2017 01:51
-
-
Save daurrutia/ab5a006fec255390614d4dbaa7158c67 to your computer and use it in GitHub Desktop.
Get-Windows-Cluster-Nodes
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 FailoverClusters | |
$domain = Read-Host "Enter target domain (ex., contoso.com, corp.local, etc.)" | |
$clusList = Get-Cluster -Domain $domain | |
Write-Host $clusList | |
ForEach ($clus in $clusList){ | |
Get-ClusterNode -Cluster $clus | Export-Csv ClusterNodes.csv -Append | |
Write-Host Get-ClusterNode -Cluster $clus | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment