I keep getting PowerShell Script failed to run alert for DiscoverDHCPFailoverServerWatcher2012 script after importing DHCP management pack for WS2012 R2. Does anybody have any ideas about how to fix this one?
running scom 2012 r2 with all recent updates installed; dhcp server is ws2012 r2
Alert details below:
The PowerShell script failed with below
exception
System.Management.Automation.RuntimeException: You cannot call
a method on a null-valued expression.At line:128 char:5
+
$ObjDHCPFailoverWatcher.AddProperty($ScopeId, $FailOvObj.Scope ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at
CallSite.Target(Closure , CallSite , Object )
at
System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0
arg0)
at CallSite.Target(Closure , CallSite , Object )
at
System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame
frame)
at
System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
Script Name:
DiscoverDHCPFailoverServerWatcher2012
One or more workflows were
affected by this.
Workflow name:
Microsoft.Windows.DHCPServer.2012.R2.FailoverServerWatcher.Discovery
Instance ID:
{33ABA8E1-DDD0-F8B9-7458-637B394C6F77}
Gleb.