serverRoom/backend-csharp/amt-sdk-20-0-0-1/IntelvProModule/PS_Snippets/RemoteControl/Set or Disable Boot Configuration Settings for the Next Boot.ps1

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")