I am currently working on a script for deploying the ZfD 6.5 agent (will work with previous and future versions as well). In this script I am running a set of checks to ensure the workstation is at the minimum required service pack level and IE version.
If you attempt to deply the ZfD 6.5 agent to workstations that do not meet this minimum, the install fails. Unless other wise configured, you are not really given the reason why the install failed (speaking from an automated deployment scenrio).
I would like it if others could share with me what kind of failures they have run into when deploying the ZfD agent to their workstations so I may expand on this script.
Below is an example of this script that is usable. This script was created with AutoIt ( ) and utilizes the Kiwi windows based Syslog service (both daemon and SyslogGen) for reporting errors ( )
[tt]
[/tt]
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Brent Schmidt Certified nut case
Senior Network Engineer
Keep IT Simple
If you attempt to deply the ZfD 6.5 agent to workstations that do not meet this minimum, the install fails. Unless other wise configured, you are not really given the reason why the install failed (speaking from an automated deployment scenrio).
I would like it if others could share with me what kind of failures they have run into when deploying the ZfD agent to their workstations so I may expand on this script.
Below is an example of this script that is usable. This script was created with AutoIt ( ) and utilizes the Kiwi windows based Syslog service (both daemon and SyslogGen) for reporting errors ( )
[tt]
Code:
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author: Brent Schmidt <Brent@kiscc.com>
; Company: KIS Computer Center
; Client:
; Date: 10/21/05
;
; Script Function:
; Zenworks Workstation Inspection
;
; ----------------------------------------------------------------------------
;
; This scipt is intended to be used in a system login script to
; scan PC's to verify they have required service packs and Internet
; Explorer 6 installed. All output is directed to a Syslog server
;
Dim $ZfDver
Dim $IEver
$ZfDver = RegRead ( "HKLM\SOFTWARE\Novell\ZENworks\ZfD\Agent\Workstation Manager", "Version" )
$IEver = FileGetVersion("C:\Program Files\Internet Explorer\iexplore.exe")
If $ZfDver = "6.5.2.50809" Then
Exit
ElseIf $IEver < "6.0.000.0000" Then
ReportError("IE")
Else
If @OSVersion = "WIN_XP" Then
If @OSServicePack = "Service Pack 1" Then
Exit
ElseIf @OSServicePack = "Service Pack 2" Then
Exit
Else
ReportError("SP")
EndIf
ElseIf @OSVersion = "WIN_2000" Then
If @OSServicePack = "Service Pack 4" Then
Exit
Else
ReportError("SP")
EndIf
ElseIf @OSVersion = "WIN_98" Then
If @OSServicePack = "A" Then
Exit
Else
ReportError("SP")
EndIf
Else
ReportError("OS")
EndIf
EndIf
Func ReportError($error)
If $error = "SP" Then
Run ( "klogwin.exe -h 10.1.102.1 -m " & '"' & @ComputerName & " needs current service packs" & '"' )
ElseIf $error = "OS" Then
Run ( "klogwin.exe -h 10.1.102.1 -m " & '"' & @ComputerName & " needs an OS Upgrade" & '"' )
ElseIf $error = "IE" Then
Run ( "klogwin.exe -h 10.1.102.1 -m " & '"' & @ComputerName & " needs IE6 to be installed" & '"' )
EndIf
Exit
EndFunc
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Brent Schmidt Certified nut case
Senior Network Engineer
Keep IT Simple