Solved

How to list OfflineAction for all Virtual Machines in a cluster

Posted on 2014-11-08
2
180 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

837 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