ChangeBootConfiguration method of the MSFT_PCSVDevice class

A wrapper method to set either the one time boot source or persistent boot source order.

Syntax


uint32 ChangeBootConfiguration(
  [in]      string              OneTimeBootSource,
  [in]      string              PersistentBootSource[],
  [in, out] CIM_ConcreteJob REF Job
);

Parameters

OneTimeBootSource [in]

The boot source for next boot.

PersistentBootSource [in]

An ordered array of strings representing the order of boot sources.

Job [in, out]

A reference to the job that may be created by this method. NULL if the job completed before this method returns.

Return value

This method returns one of the following values.

Completed with No Error (0)
Not Supported (1)
Failed (2)
Reserved (3–4095)
Job Started (4096)
DMTF Reserved (4097–32767)
Vendor Reserved (32768–65535)

Remarks

Warning  This method will only change one setting at a time. This method will fail if you set both the OneTimeBootSource and PersistentBootSource parameters.
 

Internally, this method simply calls either the SetOneTimeBootSource or ModifyPersistentBootConfigOrder method. If you are using this class programmatically you should call the other methods directly.

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016 Technical Preview

Namespace

Root\Microsoft\Windows\HardwareManagement

MOF

PCSVDevice.mof

DLL

PCSVDevice.dll

See also

MSFT_PCSVDevice

 

 

Show: