Forum Discussion
If you only need to backup the configuration of TMG, you can use this script to make a backup to a (remote) folder:
Create a Script with the following content and save the script TMG2010Backup.vbs with the .VBS extension.
Dim fileName
Dim WSHNetwork
Dim 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.GetContainingArray
set WSHNetwork = CreateObject("WScript.Network")
fileName=shareName & "\" & WSHNetwork.ComputerName & "-" & _
Month(Now) & "-" & Day(Now) & "-" & Year(Now) & ".xml"
array.Export xmldom, 0
xmldom.save(fileName)
To execute the script, use the following syntax:
Cscript TMG2010Backup.vbs \\SERVERNAME\TMGBACKUP
Related Content
- 2 months ago
- 11 years ago