![]() |
![]() | How I automated clamscans in my network using batch files | ![]() |
![]() |
![]() | OK, now for how I automated installation | ![]() |
micah
![]() |
![]() |
When you get all the prerequisites in order, all you'll have to do is run a batch file and clamwin will install to all network pcs. THis is good for first time install or upgrade installs. Only tested on XP pro.
== Automated ClamWin Installation == * You need to have the latest clamwin installation executive in a network share location NOTE: anytime you see "\\apvdbs03\Public\clamscans\" below, that is my network share. You need to replace that with your network share. This share need to have a zip file containing the clamwin install .exe file and install.bat (below). It also needs to have remoteinstall1.bat and a folder called installlogs * You need to have psexec (Microsoft's PS Tools https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx ) installed on the system you run this from * update the install.bat text with the file name of the current clamwin install executable * you need to have 7-zip installed (you should have it anyway, it's great and it's open source) What the batch files do: * runs CopyFile2all.bat (must have computers.txt where run from). This puts the whatever file you choose onto the c:\ drive of all network desktops. The file you'll put on there in this case is remoteinstall.bat, which you'll have on the network share mentioned above. This batch file first pings and makes noreply.log for pc's it can't connect to. * runs claminstall2all.bat. This file connects (by psexec) to each pc in the computers.txt list and runs the installation batch file. This is 2 parts. First, a zip file is pulled from the share to the root, unzipped by 7zip. That zip file contains the clamwin install exe file and install.bat. Install.bat first kills any running clamwin and then installs. * The above batch files are all called by clamwin_networkinstall.bat which is the file you'll run. Each pc that is successful will send a log file to your share Here are the batch files you'll need: claminstall2all.bat:
CopyFile2all.bat:
clamwin_networkinstall.bat:
remoteinstall1.bat:
install.bat:
|
|||||||||||||||||||||
|
![]() |
![]() | How I automated clamscans in my network using batch files | ![]() |
|
||
![]() |
![]() |
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.