6 lines
417 B
PowerShell
6 lines
417 B
PowerShell
$bootServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM CIM_BootService WHERE Name='Intel(r) AMT Boot Service'")
|
|
$inputObject = $bootServiceRef.CreateMethodInput("SetBootConfigRole")
|
|
$inputObject.SetProperty("BootConfigSetting", $bootConfigSettingRef)
|
|
$inputObject.SetProperty("Role", "1")
|
|
$outputObject = $bootServiceRef.InvokeMethod($inputObject)
|
|
$returnValue = $outputObject.GetProperty("ReturnValue") |