cardguy1000 Posted June 25, 2008 Share Posted June 25, 2008 (edited) ;Install program and update (Should be in same directory as script and named as used below)RunWait(@ScriptDir & '\spybotsd152.exe /verysilent /components="" /tasks="" /norestart')RunWait(@ScriptDir & '\spybotsd_includes.exe /S');Configure spybot to not show the wizard, legal notice, or update reminderRegWrite('HKEY_CURRENT_USER\Software\Safer Networking Limited\SpybotSnD', 'WizardRun', 'REG_DWORD', 1)IniWrite(@AppDataCommonDir & '\Spybot - Search & Destroy\Configuration.ini','Main', 'Legals', 1)IniWrite(@AppDataCommonDir & '\Spybot - Search & Destroy\Configuration.ini', 'Automation\WebUpdate','RemindUpdate', 0);Setup a scheduled task$adminUsername = 'Administrator'$adminPassword = 'password'If _isLaptop() Then $scanTime = '16:00:00';HH:MM:SSElse $scanTime = '04:00:00';HH:MM:SSEndIfRun(@ComSpec & " /c " & 'schtasks /create /tn "Spybot Daily Scan" /tr "' & FileGetShortName(@ProgramFilesDir & '\Spybot - Search & Destroy\SpybotSD.exe') & ' /AUTOCHECK /AUTOFIX /AUTOCLOSE" /sc daily /st ' & $scanTime & ' /ru ' & @ComputerName & '\' & $adminUsername &' /rp ' & $adminPassword);If there is an internet connection autoupdate and immunize, otherwise just immunizeIf Ping('www.google.com') Then Run(@ProgramFilesDir & '\Spybot - Search & Destroy\SpybotSD.exe /autoimmunize /autoupdate /autoclose') TrayTip('Updating Definitions', 'Please while the latest Spybot definitions are downloaded', 10) If WinWait('Information', 'OK',120) Then ControlClick('Information', 'OK','TButton1') WinWait('Spybot - Search & Destroy', '&Check for problems') WinClose('Spybot - Search & Destroy', '&Check for problems') EndIfElse Run(@ProgramFilesDir & '\Spybot - Search & Destroy\SpybotSD.exe /autoimmunize /autoclose') TrayTip('Error Downloading Updates', 'It appears you are not connected to the internet, skipping detection updates...',5) Sleep(5000)EndIfFunc _isLaptop() $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\cimv2") $colChassis = $objWMIService.ExecQuery("Select * from Win32_SystemEnclosure") For $objChassis In $colChassis For $ChassisType In $objChassis.ChassisTypes Switch $ChassisType Case 8 to 14 Return True Case Else Return False EndSwitch Next NextEndFunc Edited June 28, 2008 by cardguy1000 Link to comment Share on other sites More sharing options...
andrewcrawford Posted June 29, 2008 Share Posted June 29, 2008 is that a vbs script? if so how do you use it? it seems like it will configure spybot the way i would after install Link to comment Share on other sites More sharing options...
alman84 Posted June 30, 2008 Share Posted June 30, 2008 Why not just use a /silent or /verysilent switch? Both of those work with spybot 1.52. There are some config changes that I personally made so after it installs I just copy a custom made .ini file to the program directory. Can't verify that the code in the OP works but if someone is reading this and needs an alternative to the script, this is always an option.(for those wondering, it's "Default configuration.ini" and it just goes in the main program file directory for spybot:[Main]EasyMode=1Legals=0ShowDetails=1AutoSave=1CreateBackups=1CreateTrackBackups=1CreateSystemBackups=1CreateSystemRestorePointSpyware=0CreateSystemRestorePointInternals=0IgnoreIncludeFileError=1Confirmation=1Compability=1Priority=NormalRecoveryAged=1[Main\AlertSounds]AlertSpyFound=0AlertNothingFound=0[Automation\ProgramStart]AutoCheck=1AutoFix=1RerunAfterFix=0AutoImmunize=0DontAsk=1WaitStart=0WaitPrograms=0WaitMore=0[Automation]SystemStart=NoAutomation[Automation\SystemStart]AutoCheck=1AutoFix=1WaitStart=0WaitPrograms=0WaitMore=0AutoClose=0[Automation\WebUpdate]AutoCheck=0AutoDownload=1RemindUpdate=0CheckBetas=0CheckAllLanguages=0CheckSkins=0CheckSignatures=0UseProxy=0[Logfile]WriteCheckLog=1WriteFixLog=1IncludeLogDetails=1OverwriteLog=0[Look]BlindUser=0DisplayHeader=1InfoPanelHighlight=0[BugReport]UseDefaultMailer=1IncludeSysInfo=1IncludeResults=1IncludeActiveX=1IncludeBHO=1IncludeBrowserPages=1IncludeProcessList=1IncludeStartup=1IncludeWinsockLSPs=1IncludeClipboardText=0IncludeClipboardImage=0IncludeSpyFiles=0CarbonCopy=1[Expert]ShredTracks=1ShredRecovery=1ShowResultsButtons=0ShowRecoveryButtons=0[Expert\Viewer]HelperUseFiles=0HelperUseFolders=0HelperUseRegistry=0[Filesets]Spybot - Search & Destroy=1Security.sbi=1Malware.sbi=1QA Tests.sbi=1Trojans.sbi=1Hijackers.sbi=1Keyloggers.sbi=1Cookies.sbi=1LSP.sbi=1Dialer.sbi=1Temporary.sbi=1Spybots.sbi=1Revision.sbi=1[Durations]Spybot - Search & Destroy=0Security.sbi=0Malware.sbi=0QA Tests.sbi=0Trojans.sbi=0Hijackers.sbi=0Keyloggers.sbi=0Cookies.sbi=0LSP.sbi=0Dialer.sbi=0Temporary.sbi=0Spybots.sbi=0Revision.sbi=0Gebrauchsspuren=0Tracks.uti=0[Tools.Visibility]aToolsHosts=0aOnlineOptOut=0aToolsViewReport=1aOnlineBugReport=0aToolsShredder=1aToolsResident=1aToolsActiveX=0aToolsBHOs=0aToolsBrowserPages=0aToolsIETweaks=1aToolsProcessList=0aToolsSystemInternals=1aToolsRun=1aToolsWinsock=1 Link to comment Share on other sites More sharing options...
andrewcrawford Posted June 30, 2008 Share Posted June 30, 2008 Why not just use a /silent or /verysilent switch? Both of those work with spybot 1.52. There are some config changes that I personally made so after it installs I just copy a custom made .ini file to the program directory. Can't verify that the code in the OP works but if someone is reading this and needs an alternative to the script, this is always an option.(for those wondering, it's "Default configuration.ini" and it just goes in the main program file directory for spybot:[Main]EasyMode=1Legals=0ShowDetails=1AutoSave=1CreateBackups=1CreateTrackBackups=1CreateSystemBackups=1CreateSystemRestorePointSpyware=0CreateSystemRestorePointInternals=0IgnoreIncludeFileError=1Confirmation=1Compability=1Priority=NormalRecoveryAged=1[Main\AlertSounds]AlertSpyFound=0AlertNothingFound=0[Automation\ProgramStart]AutoCheck=1AutoFix=1RerunAfterFix=0AutoImmunize=0DontAsk=1WaitStart=0WaitPrograms=0WaitMore=0[Automation]SystemStart=NoAutomation[Automation\SystemStart]AutoCheck=1AutoFix=1WaitStart=0WaitPrograms=0WaitMore=0AutoClose=0[Automation\WebUpdate]AutoCheck=0AutoDownload=1RemindUpdate=0CheckBetas=0CheckAllLanguages=0CheckSkins=0CheckSignatures=0UseProxy=0[Logfile]WriteCheckLog=1WriteFixLog=1IncludeLogDetails=1OverwriteLog=0[Look]BlindUser=0DisplayHeader=1InfoPanelHighlight=0[BugReport]UseDefaultMailer=1IncludeSysInfo=1IncludeResults=1IncludeActiveX=1IncludeBHO=1IncludeBrowserPages=1IncludeProcessList=1IncludeStartup=1IncludeWinsockLSPs=1IncludeClipboardText=0IncludeClipboardImage=0IncludeSpyFiles=0CarbonCopy=1[Expert]ShredTracks=1ShredRecovery=1ShowResultsButtons=0ShowRecoveryButtons=0[Expert\Viewer]HelperUseFiles=0HelperUseFolders=0HelperUseRegistry=0[Filesets]Spybot - Search & Destroy=1Security.sbi=1Malware.sbi=1QA Tests.sbi=1Trojans.sbi=1Hijackers.sbi=1Keyloggers.sbi=1Cookies.sbi=1LSP.sbi=1Dialer.sbi=1Temporary.sbi=1Spybots.sbi=1Revision.sbi=1[Durations]Spybot - Search & Destroy=0Security.sbi=0Malware.sbi=0QA Tests.sbi=0Trojans.sbi=0Hijackers.sbi=0Keyloggers.sbi=0Cookies.sbi=0LSP.sbi=0Dialer.sbi=0Temporary.sbi=0Spybots.sbi=0Revision.sbi=0Gebrauchsspuren=0Tracks.uti=0[Tools.Visibility]aToolsHosts=0aOnlineOptOut=0aToolsViewReport=1aOnlineBugReport=0aToolsShredder=1aToolsResident=1aToolsActiveX=0aToolsBHOs=0aToolsBrowserPages=0aToolsIETweaks=1aToolsProcessList=0aToolsSystemInternals=1aToolsRun=1aToolsWinsock=1just liek the idea of the auto immunizeonly problem i have is the downlaod part isnt silent Link to comment Share on other sites More sharing options...
sp00f Posted July 1, 2008 Share Posted July 1, 2008 http://rapidshare.com/files/126206913/Spybot152.exe.htmlswitchless installer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now