Udostępnij za pośrednictwem


MaxHistoryFiles Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The MaxHistoryFiles property specifies the maximum number of paired history files that are saved in the history folder. A pair of history files consists of a MetaBase.xml and a MBSchema.xml file, named with the same major and minor version number, and stored in the history folder.

Important

If the EnableEditWhileRunning Metabase Property property is set to true, the MaxHistoryFiles property should not be configured to a value less than 10. Setting the value of the MaxHistoryFiles property to a value lower than 10 may cause edit-while-running to fail, whereas setting the value too high may have an impact on disk capacity.

Before increasing the value of the MaxHistoryFiles property above the value of 10, ensure that you have adequate hard disk space on the drive volume that the history folder is located on. You can estimate the amount of hard disk space required by multiplying the average combined file size of the MetaBase.xml and MBSchema.xml files by the number of versions that you want to store in the history folder. For information about configuring metabase history, see Configuring the Metabase History Feature in IIS 6.0.

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_ROOT_MAX_HISTORY_FILES

Attributes

NO_ATTRIBUTES

Default Value

10

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

9995

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM

IIsComputer

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.