ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
How to schedule ClamWin when no user is logged on ?
PaulM47


Joined: 30 Jul 2008
Posts: 0
Reply with quote
Hi, I've loaded ClamWin onto a PC used as a server that generally has no-one logged on. The scheduled scan doesn't run unless I'm logged on. Is there a way to make the scheduled scan run when I'm not logged on ?
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
you can use windows task scheduler and clamscan.exe command line tool.

The best way to find out the command line parameters is to run the desired scan from the GUI and then open %temp%\clamwin1.log file in Notepad. The last used command line should be printed there.
View user's profileSend private message
vreid47362


Joined: 05 Jul 2006
Posts: 0
Reply with quote
If you use task scheduler on a Windows machine, that user account must be logged on in order for the scan to run. If you want the scan to run, regardless of who is logged on, you will need to create a batch file and schedule the task using either schtasks or at (at is on server 2003, 2000, nt4, XP, 2000 workstation, and nt4 workstation).

See my post here: https://forums.clamwin.com/viewtopic.php?t=1557 for a sample piece of code (turn this into a batch file) that will scan a selected set of directories, log the results to Windows application log, and email the results to you.

Vaughn Reid III
View user's profileSend private message
PaulM47


Joined: 30 Jul 2008
Posts: 0
Reply with quote
Many thanks for your replies, I'll give it a try.
View user's profileSend private message
How to schedule ClamWin when no user is logged on ?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic