![]() |
The following steps describe how to set the network time using the Time Synchronization service.
1. Retrieve the instance of AMT_TimeSynchronizationService, where “the “Name” key equals “Intel(r) AMT Time Synchronization Service”.
2. To obtain the local Intel AMT time (in UNIX format), invoke AMT_TimeSynchronizationService.GetLowTimeSynch, which returns a uint32 value, Ta0.
3. Note Tm1 as the remote console time when the GetLowTimeSynch method was invoked.
4. Note Tm2 as the remote console time just prior to invoking AMT_TimeSynchronizationService.SetHighAccuracyTimeSynch.
5. Invoke AMT_TimeSynchronizationService.SetHighAccuracyTimeSynch(Ta0,Tm1,Tm2)
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
$timeSynchronizationServiceRef =$wsmanConnectionObject.NewReference("SELECT * FROM AMT_TimeSynchronizationService WHERE Name='Intel(r) AMT Time Synchronization Service'")
$ta0 = GetTimeSync
if($ta0 -ne $null)
{
$dateTime =[System.DateTime]"1/1/1970"
$tm1 =[System.DateTime]::UtcNow
$tm1 = New-TimeSpan-Start $dateTime -End $tm1
$tm1 =[System.Math]::Floor($tm1.TotalSeconds)
$tm2 =[System.DateTime]::UtcNow
$tm2 = New-TimeSpan-Start $dateTime -End $tm2
$tm2 =[System.Math]::Floor($tm2.TotalSeconds)
$inputObject =$timeSynchronizationServiceRef.CreateMethodInput("SetHighAccuracyTimeSynch")
$inputObject.SetProperty("Ta0",$ta0.ToString())
$inputObject.SetProperty("Tm1",$tm1.ToString())
$inputObject.SetProperty("Tm2",$tm2.ToString())
$outputObject =$timeSynchronizationServiceRef.InvokeMethod($inputObject)
$returnValue =$outputObject.GetProperty("ReturnValue")
}
Additional Information
When working with Active Directory users (Kerberos), this procedure should be executed periodically to deal with differences in clock accuracy between the Intel AMT device and the server providing Kerberos tickets. The procedure should also be executed when configured for TLS, as time accuracy is required when working with certificate validity times.
Instance Diagram
Classes Used in This Flow
SDK Sample
Copyright © 2006-2022, Intel Corporation. All rights reserved. |