Partager via


IIsComputer.RestoreHistory (WMI)

The RestoreHistory method restores the entire metabase from a set of history files that are periodically created by IIS. You can only use history files that were created on the same computer.

objIIsComputer.RestoreHistory(
      MDHistoryLocation,
      MajorVersion,
      MinorVersion,
      MDFlags
)

Parameters

  • MDHistoryLocation
    [in] 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
    [in] A long integer containing the major version number of the selected history file.

  • MinorVersion
    [in] A long integer containing the minor version number of the selected history file.

  • MDFlags
    [in] Reserved. Must be zero.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also