Solved

How to list OfflineAction for all Virtual Machines in a cluster

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
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 steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now