クラスター化されたサーバーの自動管理を可能にするスクリプトを開発中です。その一環として、Powershell スクリプトからクラスター ノードを停止および開始できるようにする必要があります。
これに使用しているコードは次のとおりです。
Import-Module NetworkLoadBalancingClusters
Stop-NlbClusterNode [[-HostName] <string>] [-InterfaceName <string>] [<CommonParameters>]
しかし、Powershell v2 を使用して 3 つの異なる環境 (Windows 7/Windows Server 2003/Windows Server 2008 R2) でこのスクリプトを実行すると、次のエラーが発生します。
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.
このエラーの原因となっている私がここで間違ったことを知っている人はいますか?
前もって感謝します、
スチュアート