SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 738 | Next

Michael Noel

"Microsoft ISA Server 2006 Unleashed"


Function PadDigits(n, totalDigits)
If totalDigits > len(n) then
PadDigits = String(totalDigits-len(n),???0???) & n
Else
PadDigits = n
End If
End Function
481
18
Automating ISA Server Export with Custom Scripts
]]>



Note that the file can be modified as necessary to add additional variables, and to allow
for functionality such as remote backup of servers or entire server arrays.
This particular script is run from the command line, and, after it is completed, automatically
exports out the ISA configuration to the remote or local destination chosen, as
shown in Figure 18.7.
NOTE
This code, as well as other snippets of code relevant to ISA Server 2006 that are referenced
in this book, can be downloaded from the Sams Publishing website by searching
for the book, then clicking on the Downloads link associated with the title.
Scheduling the Automatic ISA Export Script
The biggest advantage to using a script such as the one illustrated is that it can be scheduled
to run weekly, daily, or even hourly backups of the ISA configuration with little overhead
to the server itself. Scheduling the script to run automatically can be done with the
Windows Task Scheduler service, which can be configured to run particular programs,
executables, or batch files on a regular basis.


Pages:
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750