PoshCode Logo PowerShell Code Repository

Get-MSCSRestartAction by Chad Miller 20 months ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/1912"></script>download | new post

Returns the restart action for Microsoft Cluster resources. Useful in finding non-critical resources like Backup S/W which have affect group setting on. See http://msdn.microsoft.com/en-us/library/aa371464(VS.85).aspx for restartAction description.

  1. param($cluster)
  2. gwmi -ComputerName $cluster -Namespace "root\mscluster" -Class MSCluster_Resource | Select @{n='Cluster';e={$cluster}},Name, RestartAction

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me