get-wmiobject <-> cluster /cluster:SERVER res

  • Thread starter Thread starter mbuehlmeier
  • Start date Start date
M

mbuehlmeier

i try to get with powershell a list of cluster nodes which show the cluster
resource is running on.

Get-WmiObject -namespace $namespace -computername SERVER -class $class |
select-object @{Name="SystemName";Expres
sion = {$_.__server}},@{Name="ClusterGroup";Expression = {$_.Name}} | sort
-property Name | out-file d:\temp\powershell-clust
er.txt -append -encoding ascii

but it does not show correct if the resources are running on different nodes
f.e.
cluster group on node-a
evs on node-b

cluster /cluster:SERVER res
does show it correct
 
Sorry, but this newsgroup is for questions about programming in Access (the
database product that's part of Office Professional) using Visual Basic for
Applications.

You'd be best off reposting your question to a newsgroup related to
Powershell.
 
Back
Top