共用方式為


ImportStoreWithFlags method of the BcdStore class

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.

Syntax

boolean ImportStoreWithFlags(
  [in]           string File,
  [in, optional] uint32 Flags
);

Parameters

File [in]

The full path to the store. The store could be created by the ExportStore or CreateStore method or by the BcdEdit /export or BcdEdit /createstore command.

Flags [in, optional]

On computers with UEFI firmware, this parameter can be set with zero or the following value.

Value Meaning
Clean
0x1
Deletes all boot entries in NVRAM and recreates them based on information in the supplied file store.

On computers without UEFI firmware, the Flags parameter is ignored.

Requirements

Minimum supported client
Windows Vista with SP1 [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Namespace
Root\WMI
MOF
Bcd.mof

See also

BcdStore

ExportStore

ImportStore