Export (0) Print
Expand All

IIsComputer.SaveData (WMI)

IIS 6.0

The SaveData method triggers IIS to create a set of history files (configuration data and schema) that back up the entire IIS metabase. History files can only be restored to the computer on which the files were created.

You must not have a handle open with write permission when you call this method, or the method will fail. The process waits for a few seconds for handles to close, so other processes with write handles open should not normally interfere with the save operation.

objIIsComputer.SaveData()

This method has no parameters.

This method has no return values.

Server: Requires or Windows Server 2003.

Product: IIS

All data in the metabase is saved, including data written by other applications.

This method will fail and return HRESULT_FROM_WIN32(ERROR_PATH_BUSY) if there are any open write handles to the metabase.

Metabase configuration data and schema is saved when IIS shuts down, so you usually do not need to call this method. However, for critical data it is recommended that you call this method whenever appropriate for your application.

Show:
© 2014 Microsoft