Home Forums Programming Powershell Determining if a server is clustered or stand-alone RE: Determining if a server is clustered or stand-alone

  • Another option is to look for the cluster service

    $s = Get-WmiObject -Class Win32_SystemServices -ComputerName $server

    if ($s | select PartComponent | where {$_ -like "*ClusSvc*"}) { Write-Output "$server is Clustered" }

    else { Write-Output "$server is Not clustered" }