|
Copy the code bellow to VBS file & schedule it to automaticly backup the Microsoft Internet Service (IIS) metabase configuration file.
|
Const MD_BACKUP_HIGHEST_VERSION = &HFFFFFFFF
Const MD_BACKUP_OVERWRITE = 1
strComputer = "LocalHost"
Set objComputer = GetObject("IIS://" & strComputer & "")
objComputer.Backup "AutomaticBackup", MD_BACKUP_HIGHEST_VERSION,_
MD_BACKUP_OVERWRITE
All IIS metabase backup sets are saved in "C:\Windows\system32\inetsrv\MetaBack" make sure you backing it up!
To restore the metabase, open IIS manager, All Tasks and Backup and Restore.