$deviceID = # The ID of the agent watchdog in Base64 format, provided by the caller when the AMT_AgentPresenceWatchdog was created. $agentPresenceWatchdogRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_AgentPresenceWatchdog WHERE DeviceID='" + $deviceID + "'") $inputObject = $agentPresenceWatchdogRef.CreateMethodInput("AddAction") $inputObject.SetProperty("OldState", "31") $inputObject.SetProperty("NewState", "8") $inputObject.SetProperty("EventOnTransition", "true") $inputObject.SetProperty("ActionSd", "0") $fwVersion = GetCoreVersion if($fwVersion.ToString() -ge "4.0") { $inputObject.SetProperty("ActionEac", "true") } $outputObject = $agentPresenceWatchdogRef.InvokeMethod($inputObject) $returnValue = $outputObject.GetProperty("ReturnValue")