11 lines
744 B
PowerShell
11 lines
744 B
PowerShell
if($fwVersion.ToString() -ge "11.0")
|
|
{
|
|
$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 + "'")
|
|
$watchDogActionRef = $wsmanConnectionObject.NewReference("SELECT * FROM IPS_WatchDogAction WHERE InstanceID='Intel (r) AMT Watch Dog Action'")
|
|
$inputObject = $agentPresenceWatchdogRef.CreateMethodInput("ApplyActionOnWatchDog")
|
|
$inputObject.SetProperty("AgentPresenceWatchDog", $agentPresenceWatchdogRef)
|
|
$inputObject.SetProperty("ActionEnable", "true")
|
|
$outputObject = $agentPresenceWatchdogRef.InvokeMethod($inputObject)
|
|
|
|
} |