IWbemBackupRestore interface

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.

Method Description
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.

Note  The client making the call must have the proper privilege enabled. Backup requires the SE_RESTORE_NAME privilege, while restoration requires SE_RESTORE_NAME. To enable a privilege, a client application must be running under a user account that has that privilege, and the privilege must be enabled using the Windows AdjustTokenPrivileges function.
For computers running Windows, any local user can make these calls, but remote users must have the WBEM_FULL_WRITE_REP access right to the root namespace.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemcli.h (include Wbemidl.h)

See Also