Solved

How to list OfflineAction for all Virtual Machines in a cluster

Posted on 2014-11-08
2
174 Views
Last Modified: 2014-11-08
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
Comment
Question by:gateguard
2 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40430259
Here you go:
Get-ClusterResource | ?{$_.ResourceType.Name -eq "Virtual Machine"} | Get-ClusterParameter OfflineAction

Open in new window

0
 

Author Closing Comment

by:gateguard
ID: 40430280
thanks!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question