![]() |
The following steps describe how to change to a different power package.
1. Find the instance of CIM_ComputerSystem representing the Intel AMT, as described in Discovering CIM_ComputerSystem.
2. From the CIM_ComputerSystem instance, traverse the CIM_ElementSettingData associations to find the instances of AMT_SystemPowerScheme.
3. Enumerate all packages by invoking AMT_SystemPowerScheme.Enumerate.
4. Invoke AMT_SystemPowerScheme.Pull and compare SchemeGUID in each instance with the GUID of the of the power package you want to activate.
5. After finding the desired instance, invoke AMT_SystemPowerScheme.SetPowerScheme on this instance.
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
$schemeGUID =# The giud of the powerpackage you want to activate.
# Create a reference to the CIM_ComputerSystem instance.
$computerSystemRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_ComputerSystem WHERE Name='Intel(r) AMT'")
$elementSettingsDataRef =$wsmanConnectionObject.NewReference("CIM_ElementSettingData")
$elementSettingsDataRef.AddSelector("ManagedElement",$computerSystemRef)
# Traverse to the CIM_ElementSettingData instances that are connected to CIM_ComputerSystem.
foreach($elementSettingDataItem in$elementSettingsDataRef.Enumerate("http://schemas.dmtf.org/wbem/wsman/1/wsman/SelectorFilter",$null))
{
# For each instance, check if it is associated to the AMT_SystemPowerScheme instance.
if($elementSettingDataItem.Object.GetProperty("SettingData").IsA("AMT_SystemPowerScheme"))
{
$systemPowerSchemeInstance =$elementSettingDataItem.Object.GetProperty("SettingData").Ref.Get()
if($systemPowerSchemeInstance.GetProperty("SchemeGUID") -like $schemeGUID)
{
# Get the AMT_systemPowerScheme object using its EPR.
$systemPowerSchemeRef =$elementSettingDataItem.Object.GetProperty("SettingData").Ref
$inputObject =$systemPowerSchemeRef.CreateMethodInput("SetPowerScheme")
$outputObject =$systemPowerSchemeRef.InvokeMethod($inputObject)
$returnValue =$outputObject.GetProperty("ReturnValue")
break
}
}
}
Additional Information
Power package settings do not revert to default values after unprovisioning as this is a platform setting and Unprovisioning applies only to Intel AMT parameters.
Instance Diagram
Classes Used in This Flow
SDK Sample
If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.
See Also: |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |