1
2
3
4
5
6
7
8
9
10
|
$desiredResponse = "DoNothing"
foreach ($cluster in Get-Cluster) {
$result = $cluster | Select-Object Name, HAIsolationResponse,
@{Name="DesiredResponse"; Expression={$desiredResponse}}
if (!$cluster.HAEnabled) {
$result.HAIsolationResponse = "HaNotConfigured"
}
$result
}
|