介绍 在本文中,我们将介绍如何使用PowerShell在Windows Server2012 R2进行的更多自动化操作以及在Windows 2008 R2和Windows Server 2012 R2上使用PowerShell自动安装故障转移群集功能。 我们将介绍可用
介绍
在本文中,我们将介绍如何使用PowerShell在Windows Server2012 R2进行的更多自动化操作以及在Windows 2008 R2和Windows Server 2012 R2上使用PowerShell自动安装故障转移群集功能。我们将介绍可用于安装可以单独运行的所需功能的命令,以及用于安装功能并记录结果的简单脚本。
那么,可以为故障转移群集安装哪些功能?故障转移群集功能由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.
过程
需要注意的是,必须以管理员身份打开的PowerShell,先让我们看一下可以运行的单个命令:
下面的命令会安装The Failover Clustering feature and the management tools.
注意:如果你并没有指明 –IncludeManagementTools 参数开关,则不会安装故障转移群集管理器和Powershell cmdlet for cluster.
PS C:\Users\Administrator> Install-WindowsFeature -Name FailOver-Clustering -IncludeManagementTools
and the next tool needed.
C:\PS> Install-windowsfeature RSAT-Clustering -IncludeAllSubFeature
最后重启计算机。
本文内容引自:http://lifeofageekadmin.com/how-to-install-failover-clustering-with-powershell/