1
我正在开发脚本以支持群集服务器的自动化管理,作为其中的一部分,我需要能够从Powershell脚本中停止和启动群集节点。Windows Powershell和管理NLB群集
我使用这个代码如下:
Import-Module NetworkLoadBalancingClusters
Stop-NlbClusterNode [[-HostName] <string>] [-InterfaceName <string>] [<CommonParameters>]
但在运行在3种不同环境中,此脚本(的Windows 7/Windows Server 2003中/在Windows Server 2008 R2)所有使用PowerShell v2的,我得到以下错误:
Get-NlbCluster : This method is not implemented in any class At line:6 char:15 + Get-NlbCluster <<<< -HostName "SERVER1" -InterfaceName "10.172.1.180" + CategoryInfo : NotSpecified: (:) [Get-NlbCluster], ManagementException + FullyQualifiedErrorId : System.Management.ManagementException,Microsoft.NetworkLoadBalancingClusters.PowerShell.GetNlbCluster.
有没有人知道我在这里做错了什么导致此错误?
由于事先
斯图尔特