SetOneTimeBootSource method of the CIM_PhysicalComputerSystemView class
This method is used to set the one time boot source for the next boot on this computer system.
Syntax
uint32 SetOneTimeBootSource(
[in] string StructuredBootString,
[in, out] CIM_ConcreteJob REF Job
);
Parameters
-
StructuredBootString [in]
-
A string representing the boot source for next boot.
-
Job [in, out]
-
Reference to the job spawned if the operation continues after the method returns. (May be null if the task is completed).
Return value
-
Completed with No Error (0)
-
Not Supported (1)
-
Failed (2)
-
Job Started (4096)
-
DMTF Reserved (4097 32767)
-
Vendor Reserved (32768 65535)
Requirements
Minimum supported client |
Windows 8.1 |
Minimum supported server |
Windows Server 2012 R2 |
Namespace |
Root\Microsoft\Windows\HardwareManagement |
MOF |
|
DLL |
|