Share via


IIsComputer.EnumBackups (WMI)

The EnumBackups method enumerates metabase backups stored in one or more backup locations, retrieving the location, version number, and date of each backup.

objIIsComputer.EnumBackups(
      BackupLocation,
      IndexIn,
      BackupVersionOut,
      BackupDateTimeOut
)

Parameters

  • BackupLocation
    [in, out] String containing the location. If an empty string is specified, all backup locations will be searched.

  • IndexIn
    [in] Long integer containing the index of the backup to enumerate. Start the index at 0 and increment by 1 until MD_ERROR_DATA_NOT_FOUND (0x800CC801L) is returned. This constant is defined in the Mdmsg.h header file.

  • BackupVersionOut
    [out] Long integer containing the version number of the backup enumerated.

  • BackupDateTimeOut
    [out] Pointer to a datetime containing the date and time of the backup, in Coordinated Universal Time (UTC), formerly GMT (Greenwich Mean Time).

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also