Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

How to list OfflineAction for all Virtual Machines in a cluster

I am looking for a powershell script to list the OfflineAction parameter for all VMs in a cluster.

I know how to get a single value:

Get-ClusterResource "Virtual Machine vmname" | Get-ClusterParameter OfflineAction

But how do I get them for all VMs on a cluster.

Thanks
0
gateguard
Asked:
gateguard
1 Solution
 
VB ITSSpecialist ConsultantCommented:
Here you go:
Get-ClusterResource | ?{$_.ResourceType.Name -eq "Virtual Machine"} | Get-ClusterParameter OfflineAction

Open in new window

0
 
gateguardAuthor Commented:
thanks!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now