Author Topic: avast! Boot Scan Switches  (Read 10897 times)

0 Members and 1 Guest are viewing this topic.

ncjimgir

  • Guest
avast! Boot Scan Switches
« on: January 29, 2007, 03:36:19 AM »
Are there any boot scan switches that can be used to modify the boot scan behavior?

joeloucyn

  • Guest
Re: avast! Boot Scan Switches
« Reply #1 on: January 29, 2007, 06:01:44 AM »
Here are some of the "switches" (command line options):
"C:\Program Files\Alwil Software\Avast4\SCHED.EXE" /?
usage:
  sched /A:area [/RA:action [/RS:reply] ] [/archives]   - schedules launching
    area = * or folder1;folder2 ...
    action = delete or move or chest or repair or ignore
    reply = yes or no
  sched /D   - unschedules boot-time scanner launching
  sched /F:"file"   - schedules delayed file operations (listed in given file)
  sched /U   - unschedules boot-time scanner and any scheduled file operations


You could use these in a batch file.

Found this from here:
Actually, there IS a way to schedule the boot-time from a command-line, even in the Home Edition.

See the sched.exe program in the avast folder.

Type sched /? to find out how to use it.
« Last Edit: January 29, 2007, 06:05:26 AM by Joeloucyn »

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #2 on: January 29, 2007, 03:31:28 PM »
Thanks for the reply.

Can you tell me what the reply switch does (/RS:reply) and
the delayed file operations (/F:"file") switch?


Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11861
    • AVAST Software
Re: avast! Boot Scan Switches
« Reply #3 on: January 29, 2007, 03:41:55 PM »
The /RS switch selects the default answer (= confirmation) for infected files found inside of the system folder.

The /F switch makes it possible to perform delayed file operations (i.e. deleting/renaming of files after restart) using the boot-time scanner. It's currently used internally in avast! and it actutally doesn't have anything to do with an antivirus scan (i.e. you can safely ignore it ;)).

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #4 on: January 29, 2007, 03:44:26 PM »
Thanks igor,

Is there an option to create a log file of the actions that occur during the boot time scan?

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11861
    • AVAST Software
Re: avast! Boot Scan Switches
« Reply #5 on: January 29, 2007, 03:57:28 PM »
I believe the report file is created automatically in <avast4>\Data\Report\aswBoot.txt

joeloucyn

  • Guest
Re: avast! Boot Scan Switches
« Reply #6 on: January 30, 2007, 12:33:48 AM »
Under action,
It has: action = delete or move or chest or repair or ignore
How would you specify move to a specific file or is it actually misworded and should say "move to chest"?

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #7 on: January 30, 2007, 12:41:59 AM »
I believe the report file is created automatically in <avast4>\Data\Report\aswBoot.txt


Yeppers, it reports the find.


Is there a way to set the boot time scan to automatically (no prompt) delete or move infected files that reside in the system directories.  The command line I am using below is removing everything but the infected system files.

"C:\Program Files\Alwil Software\Avast4\SCHED.exe" /A:* /RA:delete /RS:no

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11861
    • AVAST Software
Re: avast! Boot Scan Switches
« Reply #8 on: January 30, 2007, 12:56:01 AM »
Under action,
It has: action = delete or move or chest or repair or ignore
How would you specify move to a specific file or is it actually misworded and should say "move to chest"?

"Move" means the same as in Windows GUI - move to a specific folder (by default <avast4>\Data\Moved, possibly appending .vir extension to the filename; don't know if the boot-time scanner performs the rename as well or not).

Is there a way to set the boot time scan to automatically (no prompt) delete or move infected files that reside in the system directories.  The command line I am using below is removing everything but the infected system files.

"C:\Program Files\Alwil Software\Avast4\SCHED.exe" /A:* /RA:delete /RS:no

I believe (though I'm not 100% sure, didn't really try that one) that /RS:yes should do it.

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #9 on: January 30, 2007, 01:33:52 AM »
That did the trick!!!

Thanks

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89243
  • No support PMs thanks
Re: avast! Boot Scan Switches
« Reply #10 on: January 30, 2007, 01:36:10 AM »
Is there a way to set the boot time scan to automatically (no prompt) delete or move infected files that reside in the system directories.  The command line I am using below is removing everything but the infected system files.

"C:\Program Files\Alwil Software\Avast4\SCHED.exe" /A:* /RA:chest /RS:no

Deletion isn't really a good first option (you have none left), 'first do no harm' don't delete, send virus to the chest, check the aswBoot.txt/chest and investigate.

"C:\Program Files\Alwil Software\Avast4\SCHED.exe" /A:* /RA:chest /RS:yes
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.4.6112 (build 24.4.9067.762) UI 1.0.803/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #11 on: January 30, 2007, 01:57:50 AM »
Thanks, I made the change.

Offline DavidR

  • Avast Überevangelist
  • Certainly Bot
  • *****
  • Posts: 89243
  • No support PMs thanks
Re: avast! Boot Scan Switches
« Reply #12 on: January 30, 2007, 02:00:54 AM »
No problem, welcome to the forums.
Windows 10 Home 64bit/ Acer Aspire F15/ Intel Core i5 7200U 2.5GHz, 8GB DDR4 memory, 256GB SSD, 1TB HDD/ avast! free 24.4.6112 (build 24.4.9067.762) UI 1.0.803/ Firefox, uBlock Origin, uMatrix/ MailWasher Pro/ Avast! Mobile Security

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: avast! Boot Scan Switches
« Reply #13 on: January 30, 2007, 02:02:33 AM »
Like David, I will never delete system files without manual confirmation...
I want to boot my system and false positives could occur  ;)
The best things in life are free.

ncjimgir

  • Guest
Re: avast! Boot Scan Switches
« Reply #14 on: January 30, 2007, 03:14:18 AM »
I want to boot my system and false positives could occur  ;)


When you say "I want to boot my system and false positives could occur" does this mean that moving "system" files to the chest instead of deleting would still allow the operating system to boot?


Kind Regards and thanks for the welcome,

Jim