共用方式為


IIsComputer (ADSI)

You can use the IIsComputer object to set values of global metabase properties that determine how IIS operates. The IIsComputer object also provides methods to manage metabase backups. You can use these methods to store multiple backup versions in long-term storage, to restore the metabase from a backup version of your choice, and to enumerate and delete backups.

The IIsComputer object is an ADSI container object.

ADsPath

  • IIS:// MachineName

where MachineName can be any name or LocalHost.

Syntax

varReturn = object . Method

Parameters

  • varReturn
    A variable that receives the return value from the method.

  • object
    A variable that contains the IIsComputer object, usually as a result of a previous GetObject operation.

  • Method
    The object method chosen.

Can Contain

IIsFtpService (ADSI)

IIsMimeMap (ADSI)

IIsLogModules (ADSI)

IIsWebService (ADSI)

Properties

Windows ADSI Object Properties

Standard properties for ADSI objects.

Metabase Properties

MaxBandwidth

MimeMap

MaxBandwidthBlocked

Methods

IIsComputer.Backup (ADSI)

Saves the metabase to long-term storage.

IIsComputer.BackupWithPassword (ADSI)

Saves the metabase to long-term storage with an optionally supplied password.

Note

This method is only available on IIS 5.1 and later.

IIsComputer.DeleteBackup (ADSI)

Deletes a metabase backup from long-term storage.

IIsComputer.EnumBackups (ADSI)

Enumerates metabase backups in long-term storage.

IIsComputer.Export (ADSI)

Exports a section of the IIS metabase to a file for importing to the same IIS server or a different IIS server. The export file does not include machine-specific or system-specific data such as certain paths, GUIDs, passwords, and accounts.

Note

This method is only available on IIS 5.1 and later.

IIsComputer.Import (ADSI)

Imports a section of an IIS metabase from an export file that has been created on the same IIS server or a different IIS server. The export file does not include machine-specific or system-specific data such as certain paths, GUIDs, passwords, and accounts.

Note

This method is only available on IIS 5.1 and later.

IIsComputer.Restore (ADSI)

Restores a metabase backup from long-term storage.

IIsComputer.RestoreWithPassword (ADSI)

Restores a metabase backup using the same optionally supplied password given when the BackupWithPassword method was used.

Note

This method is only available on IIS 5.1 and later.

IIsComputer.SaveData (ADSI)

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.

Note

This method is only available on IIS 5.1 and later.

Windows ADSI Object Methods

Standard methods for ADSI objects.

Windows ADSI Container Object Methods

Standard methods for ADSI container objects.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS