Skip to content

Instantly share code, notes, and snippets.

@daurrutia
Last active March 10, 2017 01:51
Show Gist options
  • Save daurrutia/ab5a006fec255390614d4dbaa7158c67 to your computer and use it in GitHub Desktop.
Save daurrutia/ab5a006fec255390614d4dbaa7158c67 to your computer and use it in GitHub Desktop.
Get-Windows-Cluster-Nodes
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