10 lines
733 B
PowerShell

# Create the XML format of the NextAMTAlarmClock and the AMTAlarmClockInterval properties.
$nextAlarmTime = $wsmanConnectionObject.NewInstance("Datetime")
$nextAlarmTime.Text = "2013-11-07T16:28:00Z"
$amtAlarmClockInterval = $wsmanConnectionObject.NewInstance("Interval")
$amtAlarmClockInterval.Text = "P1D"
$alarmClockServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_AlarmClockService WHERE Name='Intel(r) AMT Alarm Clock Service'")
$alarmClockServiceInstance = $alarmClockServiceRef.Get()
$alarmClockServiceInstance.SetProperty("NextAMTAlarmTime", $nextAlarmTime)
$alarmClockServiceInstance.SetProperty("AMTAlarmClockInterval", $amtAlarmClockInterval)
$alarmClockServiceRef.Put($alarmClockServiceInstance)