Compartilhar via


IIsComputer.RestoreWithPassword (WMI)

The RestoreWithPassword method restores the metabase from a backup that was created with BackupWithPassword. If the backup was encrypted with a password, use the same password in this method. The restore operation stops all services dependent on the IIS Admin service (including all servers) until the restore has completed; then it restarts all services.

objIIsComputer.RestoreWithPassword(
      BackupLocation,
      BackupVersion,
      BackupFlags,
      Password
)

Parameters

  • BackupLocation
    [in] String containing the location. If an empty string is specified, the default backup location will be used.

  • BackupVersion
    [in] Long integer containing the version number to be assigned to the backup. Must be less than or equal to MD_BACKUP_MAX_VERSION (9999). Can be set to MD_BACKUP_NEXT_VERSION (0xffffffff) which automatically selects the next available version number. These constants are defined in the Mddefw.h header file.

  • BackupFlags
    [in] Reserved. Must be zero.

  • Password
    [in] Optional string that will be used to unencrypt the backup. This password must be the same as the one used when the IIsComputer.BackupWithPassword (WMI) method was invoked.

Return Values

This method has no return values.

Requirements

Server: Requires or Windows Server 2003.

Product: IIS

See Also