It is possible to create a recurring backup of the ISA Server 2006 configuration. This feature is not built into ISA Server 2006 but you can create a small script and use this script with the built in Task Scheduler from Windows Server 2003.
Create a Script with the following content and save the script with the .VBS extension.
Dim fileNameDim WSHNetworkDim shareName: shareName = WScript.Arguments(0)Dim xmldom : set xmldom = CreateObject("Msxml2.DOMDocument")Dim fpc : set fpc = WScript.CreateObject("Fpc.Root")Dim array : set array = fpc.GetContainingArrayset WSHNetwork = CreateObject("WScript.Network")fileName=shareName & "\" & WSHNetwork.ComputerName & "-" & _Month(Now) & "-" & Day(Now) & "-" & Year(Now) & ".xml"array.Export xmldom, 0xmldom.save(fileName)
To execute the script, use the following syntax:
Cscript ISA2006Back.vbs \\SERVERNAME\ISABACKUP
Explanation:
- Cscript is the command line interpreter to execute VB scripts.
- ISA2006Back.vbs is the VBS-Script to export the ISA configuration.
- \\ServerName is the Name of the Server to which you would copy the configuration.
- ISABACKUP is the name of the network share in which ISA Server 2006 should save the configuration.
Scheduled Task
As a next step you have to create a scheduled task that executes the script at specific times. There are several ways to create a new scheduled task. One way is to open Windows Explorer and navigate to the Windows\tasks directory.
Figure 8: ISA Export Wizard
Create a new task with the script you created earlier, specify a schedule time and create the task.
0 comments:
Post a Comment