Delete a Backup

Deletes version 0 of the backup file named ScriptedBackup.

VBScript Code


Const BACKUP_VERSION = 0

strComputer = "LocalHost"
Set objComputer = GetObject("IIS://" & strComputer & "")
objComputer.DeleteBackup "ADSIBackup", BACKUP_VERSION