Click to Rate and Give Feedback
BcdStore Class

Represents a BCD store that contains a collection of BCD objects.

Syntax

class BcdStore
{
  string FilePath;
};

Methods

The BcdStore class defines the following methods.

MethodDescription

CopyObject

Copies the specified object from another store.

CopyObjects

Copies the objects of the specified type from another store.

CreateObject

Creates the specified object.

CreateStore

Creates a new store.

DeleteObject

Deletes the specified object.

DeleteSystemStore

Deletes the system store.

EnumerateObjects

Enumerates the objects of the specified type.

ExportStore

Saves the system store to the specified file.

GetSystemDisk

Retrieves the system disk.

GetSystemPartition

Retrieves the system partition.

ImportStore

Marks the specified store as the system store.

ImportStoreWithFlags

Marks the specified store as the system store and optionally reinitializes boot entries in NVRAM on a computer with Unified Extensible Firmware Interface (UEFI) firmware.

OpenObject

Opens the specified object.

OpenStore

Opens a store.

 

Properties

The BcdStore class defines the following property.

FilePath
Data type: string
Access type: Read-only
Qualifiers: Key

A file path that uniquely identifies the store. The system store is denoted by an empty string ("").

Remarks

Each store is contained in a file. One store is marked as the system store, which is the store currently in use on the system. When the system is booted, it uses the settings in the system store.

The CreateStore, OpenStore, and ImportStore methods are static methods; they can be called without an instance of the class. To do so, open a WMI object that represents the BcdStore class and call these methods.

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
RedistributableBCD WMI provider on Windows Server 2003, Windows XP, and Windows 2000
MOFBcd.mof
Namespace\\.\Root\WMI

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker