【问题标题】:Windows Powershell & Managing NLB CLustersWindows Powershell 和管理 NLB 集群
【发布时间】:2010-11-25 15:49:25
【问题描述】:

我正在开发脚本以允许自动管理集群服务器,作为其中的一部分,我需要能够从 Powershell 脚本停止和启动集群节点。

我使用的代码如下:

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.

有谁知道我在这里做错了什么导致了这个错误?

提前致谢,

斯图尔特

【问题讨论】:

    标签: powershell powershell-2.0 nlb


    【解决方案1】:

    这仅适用于 Windows Server 2008 R2,您必须安装网络负载平衡功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-09
      • 1970-01-01
      相关资源
      最近更新 更多