The IWbemBackupRestore interface backs up and restores the contents of the WMI repository. The affected content of the repository is static data, such as the class definitions that are compiled into the repository when a MOF file is loaded. The dynamic data supplied through providers is not included.
The IWbemBackupRestore interface has these methods.
|IWbemBackupRestore::Backup||The IWbemBackupRestore::Backup method backs up the contents of the static repository to a separate file.|
|IWbemBackupRestore::Restore||The IWbemBackupRestore::Restore method deletes the contents of the current repository and restores them with the contents of a previously specified backup.|
The default mode is the same as setting the force mode flag, which breaks all active connections. This results in remote procedure call (RPC) errors from any active COM connections to WMI until new connections are established.
There can be no active connections to the repository during a restore operation. For this reason, the restore operation fails if default parameters are used and there are active connections. A flag can be specified to break all active connections.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|
|Header||wbemcli.h (include Wbemidl.h)|