In this post we will cover some more automation with PowerShell and in automating installing Failover Cluster features with PowerShell on Windows 2008 R2 and Windows Server 2012 R2. We will cover the commands available to install the features needed that can be run individually and also a simple script to install the features and log the results.
So what are the features available to install for Failover Clustering? The Failover Cluster feature consists of the following components as shown by the Windows Server PowerShell CmdLet Get-WindowsFeature:
- Failover-Clustering (Failover Clustering) = This installs the core Failover Clustering feature and all fundamental requirements. It does not include any management tools.
- RSAT-Clustering-Mgmt (Failover Cluster Management Tools) = Includes the Failover Cluster Manager snap-in and the Cluster-Aware Updating interface.
- RSAT-Clustering-PowerShell (Failover Cluster Module for Windows PowerShell) = Includes Windows PowerShell cmdlets for managing failover clusters. It also includes the Cluster-Aware Updating module for Windows PowerShell, for installing software updates on failover clusters.
It is important to note that you must run these cmdlets in a PowerShell console that is opened with elevated privileges, which means opening it with the “Run as Administrator” option. Having said that let’s take a look at the single commands you can run to
The following cmdlet will install the Failover Clustering feature and the management tools.
Note: If you do not specify the –IncludeManagementTools switch, the Failover Cluster Administrator and PowerShell cmdlets for cluster will not be installed.
To install open a PowerShell elevated command window and type the following commands.
C:\PS> Install-WindowsFeature -Name Failover-Clustering –IncludeManagementTools
and the next tool needed.
C:\PS> Install-windowsfeature RSAT-Clustering -IncludeAllSubFeature
Very simple to install using PowerShell. Once completed you are ready to form the cluster which can also be accomplished with PowerShell.