Hi All,
Below is the simple PowerShell snippet, which could check if the server is cluster or not
$ServerName=’Server1’
$sObj = Get-WmiObject -Class Win32_SystemServices -ComputerName $ServerName
if ($sObj | select PartComponent | where {$_ -like "*ClusSvc*"})
{
Write-Output "$ServerName is Clustered"
}
else
{
Write-Output "$server is Not clustered"
}
Regards,
Chaitanya