URLScan.net

How to schedule Internet Information Service Metabase Backup? Use This VBS!



Automatic Scheduled Backup to IIS MetaBase by VBS

 

Copy the code bellow to VBS file & schedule it to automaticly backup the Microsoft Internet Service (IIS) metabase configuration file.
This VBS is working on Windows 2000 Server with Scripten-NT 5.6 & Windows Server 2003.



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.

backup and restore iis configuration metadata