6 lines
1.6 KiB
PowerShell
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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()