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

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
 
D

Douglas J. Steele

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top