IBM Tivoli and Cisco Network Card User Manual


 
Chapter 8. Remediation subsystem implementation 419
2. In the next step we create the Windows script that will perform the actual job.
We can reuse the one provided with the samples in the sample_TCRNavScan
directory named NavScanMessage_en.wsf (Windows Script File format) or
create a new one using the source code provided in Example 8-8. Copy the
file to the new directory that you created in the previous step.
Example 8-8 Content of NavScanMessage_en.wsf
<?xml version="1.0"?>
<job>
<script language="JScript">
<![CDATA[
var WshShell = WScript.CreateObject("WScript.Shell");
var strTitle = "Tivoli Security Compliance Manager";
var nSecondsToWait = 0;
var nButtonType_Ok = 0;
var nIconType_Exclamation = 48;
var nType = nButtonType_Ok + nIconType_Exclamation;
WshShell.Popup("A virus scan of your system must be performed. Please
follow the steps below. \n\nPlease open Symantec/Norton AntiVirus GUI from
Start -> Programs -> Symantec Client Security -> Symantec AntiVirus. Then
click Scan -> Scan Computer. Indicate that all local drives are to be
scanned, and then click Scan to begin the scan.", nSecondsToWait, strTitle,
nType);
]]>
</script>
</job>