我正在开发脚本以允许集群服务器的自动化管理,作为其中的一部分,我需要能够从Powershell脚本中停止并启动集群节点。
我为此使用的代码如下:
Import-Module NetworkLoadBalancingClusters
Stop-NlbClusterNode [[-HostName] <string>] [-InterfaceName <string>] [<CommonParameters>]但是,在三个不同的环境(Windows7/Windows 2003/Windows 2008 R2)上运行此脚本时,我得到以下错误:
Microsoft.NetworkLoadBalancingClusters.PowerShell.GetNlbCluster.:该方法没有在任何一行类中实现:6字符:15+Get-Nlb群集<<<< -HostName "SERVER1“10.172.1.180”+ CategoryInfo : NotSpecified:(:) Get-Nlb群集,ManagementException + FullyQualifiedErrorId : System.Management.ManagementException,CategoryInfo“
有人知道我做错了什么吗?这是造成这个错误的原因吗?
提前谢谢,
斯图尔特
发布于 2011-04-25 19:00:23
这只适用于Windows 2008 R2,您必须安装网络负载平衡功能。
https://stackoverflow.com/questions/4278767
复制相似问题