Text
$cluster=Get-WMIObject win32_service |Where-Object {$_.name -eq "Clussvc"}|select Name,State,Startus
foreach($service in $cluster)
{
$name=$service |where{$_.name -ne "$cluster"}
if($true)
{
'Yes'|export-csv c:\temp\test.csv
}
else{
'no'|export-csv c:\temp\test.csv
}
}
Hi Team,
Need your help here,
how can i export the condition Yes and no.
when i tried to run, its only blank?
please advise