Hi All,
I'm trying to get the connector state using powershell in Operations Manager 2007 R2.
So far I've been able to do this:
$svc = New-WebServiceProxy –Uri 'http://localhost:51905/ConnectorFramework?WSDL'
The following Powershell command will list all Properties and Methods available from the Connector Framework
$svc | Get-Member # Use Get-Member
One of the Properties of the Connector Framework is GetConnectorState() which you pass in the ConnectorID as an argument.
Then I try this:
$svc.GetConnectorState($ConnectorId)
Cannot find an overload for "GetConnectorState" and the argument count: "1".
At line:1 char:23
+ $svc.GetConnectorState <<<< ($ConnectorId)
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest
Am I missing something?