Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Members

The IWbemBackupRestore interface inherits from the IUnknown interface. IWbemBackupRestore also has these types of members:

Methods

The IWbemBackupRestore interface has these methods.

MethodDescription
Backup

Backs up the contents of the repository to a specified file.

Restore

Restores the contents of the repository from a specified file.

 

Remarks

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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Wbemsvc.dll

See also

COM API for WMI

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.