Compartir a través de


IIsComputer.EnumHistory (WMI)

The EnumHistory method enumerates metabase history files stored in one or more backup locations, retrieving the location, version number, and date of each automated backup.

objIIsComputer.EnumHistory(
      MDHistoryLocation,
      MajorVersion,
      MinorVersion,
      HistoryTime,
      EnumIndex
)

Parameters

  • MDHistoryLocation
    [in, out] A string of up to 100 characters that contains the absolute path of the folder where the metabase history files reside. If an empty string is specified, all history locations will be searched.

  • MajorVersion
    [out] A long integer containing the major version number of the enumerated history files.

  • MinorVersion
    [out] A long integer containing the minor version number of the enumerated history files.

  • HistoryTime
    [out] A datetime that receives the date and time of the backup, in Coordinated Universal Time (UTC), formerly GMT (Greenwich Mean Time).

  • EnumIndex
    [in] A long integer that specifies 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.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also