Quantcast
Viewing all articles
Browse latest Browse all 2021

Intel AMT - Failed "Run Script on Task Server" Tasks return code 0 - success

I need a solution

The Scenario:  My environment is fully configured to execute PowerShell tasks on clients from site servers.  I am using PowerShell to Set and Get the status of the AMT alarm clock.

The issue I'm having is that the task always shows success - even if the underlying Intel AMT task fails.  

Here is the "Run Script on Task Server" PowerShell code:

Import-Module IntelvPro
New-variable -name amtcred -value (read-AMTCredential)
Set-AMTAlarmClock %COMPNAME% -Credential $amtcred -AlarmTime:2013-08-05T03:00:00 -Interval:01-00:00:00
 
If the alarm time is set to a past date, the command will fail.  I'm fully aware of this and have purposefully put the wrong date in the command to make it fail.
 
Unfortunately, the task reports success and the only way I know it has failed is by opening up the task:
 
 
Status: Completed
Return code: 0
  
Start time: 8/5/2013 10:43:32 AM
End time: 8/5/2013 10:43:46 AM
Total run time: 13 seconds

Completed

Output Properties
 
  
Script: ComputerName : <redacted>
Port : 16992
NextAlarmTime : Monday, August 05, 2013 3:00:00 AM
PeriodicInterval : P0Y0M01DT00H00M
Status : Failed

I haven't yet made the transition to powershell from vbscript.  Does anyone have any tips for getting the status of the Intel AMT PowerShell command to return a failure code to task server when the status returns "Failed"?

1375793646

Viewing all articles
Browse latest Browse all 2021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>