This script is crude and uses goto’s. I am currently
trying to convert this to something more professional
looking with error reporting. This is only intended for
2000/xp clients. I chose to shell the output while using
a synchronous logon script to clean spyware before it loads
into memory. Truthfully I’m not sure if this theory is
correct and maybe someone can shed some light on this. I
have a script for 9x but does not autocheck for spyware
as this kills the os and makes it nonresponsive. If I shell
the command to execute spybotsd.exe on 9x clients then it
takes way too long (5 to 12 min) and is unacceptable.
Therefor I only autoimmunize the 9x machines. I sought advice
in the forum on how to use the enumprocess() function to
create a progress/busy indicator while spybot is scanning but
haven’t been successful yet.
Kevin
Code:
if exist ('C:\Program Files\Spybot - Search & Destroy\spybotsd.exe')
goto "spybot_verify_version_32bit"
endif
if exist ('C:\Program Files (x86)\Spybot - Search & Destroy\spybotsd.exe')
goto "spybot_verify_version_64bit"
Else
goto "install_spybot_ver1.4"
endif
:spybot_verify_version_32Bit
$SpybotVer = GetFileVersion("C:\Program Files\Spybot - Search & Destroy
\spybotsd.exe", "fileversion")
IF $SpybotVer = "1.4.0.3"
sleep 8
goto "spybot_ver1.4_exist_32bit"
else
goto "install_spybot_ver1.4"
endif
:spybot_verify_version_64bit
$SpybotVer = GetFileVersion("C:\Program Files (x86)\Spybot - Search & Destroy
\spybotsd.exe", "fileversion")
IF $SpybotVer = "1.4.0.3"
sleep 8
goto "spybot_ver1.4_exist_64bit"
else
goto "install_spybot_ver1.4"
endif
:install_spybot_ver1.4
? "installing spybot - search & destroy"
shell "\\server\spybotsd14.exe /SILENT /SP-"
sleep 8
? "installing spybot - search & destroy definition files (08-26-05)"
shell "\\server\spybotsd_includes.exe /S /D"
sleep 8
goto "end_spybot"
:spybot_ver1.4_exist_32bit
copy "\\server\configuration.ini" "c:\Documents and Settings
\All Users\Application Data\Spybot - Search & Destroy\"
? "installing spybot - search & destroy definition files (08-26-05)"
sleep 8
shell "\\server\spybotsd_includes.exe /S /D"
? "running spybot search & destroy Ver 1.4"
sleep 8
? "...please be patient"
shell "C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe
/taskbarhide /autocheck /autofix /autoclose"
sleep 8
goto "end_spybot"
:spybot_ver1.4_exist_64bit
copy "\\server\configuration.ini" "c:\Documents and Settings
\All Users\Application Data\Spybot - Search & Destroy\"
? "installing spybot - search & destroy definition files (08-26-05)"
sleep 8
shell "\\server\spybotsd_includes.exe /S /D"
? "running spybot search & destroy Ver 1.4"
sleep 8
? "...please be patient"
shell "C:\Program Files (x86)\Spybot - Search & Destroy\SpybotSD.exe
/taskbarhide /autocheck /autofix /autoclose"
sleep 8
goto "end_spybot"
:end_spybot
Edited by 2manyhats (2005-09-23 08:39 PM)