?
Solved

How to list OfflineAction for all Virtual Machines in a cluster

Posted on 2014-11-08
2
Medium Priority
?
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
Suggested Courses

801 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