6 lines
1.6 KiB
PowerShell
6 lines
1.6 KiB
PowerShell
# Create a reference to some class. for example to AMT_SystemDefensePolicy.
|
||
$systemDefensePolicyRef = $wsmanConnectionObject.NewReference("AMT_SystemDefensePolicy")
|
||
# Set the ref with the EPR that returned when this instance was created.
|
||
$systemDefensePolicyRef.Xml = "<b:EndpointReference xmlns:b='http://schemas.xmlsoap.org/ws/2004/08/addressing' xmlns:c='http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd'><b:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</b:Address><b:ReferenceParameters><c:ResourceURI>http://intel.com/wbem/wscim/1/amt-schema/1/AMT_SystemDefensePolicy</c:ResourceURI><c:SelectorSet><c:Selector Name='InstanceID'>Intel(r) AMT:Handle:2</c:Selector></c:SelectorSet></b:ReferenceParameters></b:EndpointReference>"
|
||
# Perform some function, for example Delete().
|
||
$systemDefensePolicyRef.Delete() |