PowerShell is going to be the cluster scripting language for the future

by Doug Finke on December 20, 2008

in Failover Clustering,PowerShell

PowerShell for Failover Clustering in Windows Server 2008 R2

The team is looking for feedback on their current set of 68 cmdlets. They are using the new Module feature of PowerShell version 2.

To get a complete list of the cmdlets, run the following command: Get-Command -Module FailoverClusters

Example of creating a highly available File Server

$Node1 = "symonp-n1"
$Node2 = "symonp-n2"
$FileServerGroupName = "symonp-fsBlog"
$FileServerDiskResourceName = "Cluster Disk 1"
 
# Create a highly available file server
Add-ClusterFileServerRole `
 -Storage $FileServerDiskResourceName `
 -Name $FileServerGroupName

List of Verbs and Nouns

Verbs Nouns
  • Add
  • Block
  • Clear
  • Fail
  • Get
  • Grant
  • Move
  • New
  • Remove
  • Resume
  • Set
  • Start
  • Stop
  • Suspend
  • Test
  • Update
  • Cluster
  • ClusterAccess
  • ClusterAvailableDisk
  • ClusterDisk
  • ClusterDiskReservation
  • ClusterFileServerRole
  • ClusterGenericApplicationRole
  • ClusterGenericScriptRole
  • ClusterGenericServiceRole
  • ClusterGroup
  • ClusterIPResource
  • ClusterLog
  • ClusterNetwork
  • ClusterNetworkInterface
  • ClusterNode
  • ClusterOwnerNode
  • ClusterParameter
  • ClusterPrintServerRole
  • ClusterQuorum
  • ClusterResource
  • ClusterResourceDependency
  • ClusterResourceDependencyReport
  • ClusterResourceType
  • ClusterServerRole
  • ClusterSharedVolume
  • ClusterVirtualMachineConfiguration
  • ClusterVirtualMachineRole