Windows Vista Forums
Vista Forums Home Join Vista Forums Tech Publications Windows 7 Forum Vista Tutorials Webcasts Tags

Welcome to Vista Forums we are your forum for Windows Vista help and discussion. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Commands for Defender scan using Task Scheduler

Update your Vista Drivers
Reply
 
Thread Tools Display Modes
Old 02-21-2007   #1 (permalink)
Bruggie
Guest


 

Commands for Defender scan using Task Scheduler

I prefer to have all my scheduled system tasks centralised...so I'd like to
schedule a Defender scan using the *Vista's Task Scheduler*, rather than
configuring it with the scan options in Defender itself.

Can anybody tell me the correct command lines and switches to schedule a
*full* system scan which runs after *checking for updates*, and without the
GUI or user input etc? What other options should I set to ensure it runs
unattended in the middle of the night?

thanks

My System SpecsSystem Spec
Old 02-22-2007   #2 (permalink)
Jon
Guest


 

Re: Commands for Defender scan using Task Scheduler

"Bruggie" <Bruggie@discussions.microsoft.com> wrote in message
news:9FCD1BCC-07A2-45BA-B1B9-BE7993F68A74@microsoft.com...
>I prefer to have all my scheduled system tasks centralised...so I'd like to
> schedule a Defender scan using the *Vista's Task Scheduler*, rather than
> configuring it with the scan options in Defender itself.
>
> Can anybody tell me the correct command lines and switches to schedule a
> *full* system scan which runs after *checking for updates*, and without
> the
> GUI or user input etc? What other options should I set to ensure it runs
> unattended in the middle of the night?
>
> thanks



Something along these lines

c:\program files\windows defender\MpCmdRun.exe Scan -RestrictPrivileges

--
Jon

My System SpecsSystem Spec
Old 02-22-2007   #3 (permalink)
Bruggie
Guest


 

Re: Commands for Defender scan using Task Scheduler

Thanks for the reply. I'm doing it like this (a quick scheduled scan which
supposisdly checks for updates):
C:\Program Files\Windows Defender\MpCmdRun.exe Scan -ScanType 1
-SignatureUpdate

Does anyone know how get it to do a full scan of just the "C: drive"? The
The trouble is that the long scan takes about 5 hours because it gets trapped
in backup archives on my D: drive.



"Jon" wrote:

> "Bruggie" <Bruggie@discussions.microsoft.com> wrote in message
> news:9FCD1BCC-07A2-45BA-B1B9-BE7993F68A74@microsoft.com...
> >I prefer to have all my scheduled system tasks centralised...so I'd like to
> > schedule a Defender scan using the *Vista's Task Scheduler*, rather than
> > configuring it with the scan options in Defender itself.
> >
> > Can anybody tell me the correct command lines and switches to schedule a
> > *full* system scan which runs after *checking for updates*, and without
> > the
> > GUI or user input etc? What other options should I set to ensure it runs
> > unattended in the middle of the night?
> >
> > thanks

>
>
> Something along these lines
>
> c:\program files\windows defender\MpCmdRun.exe Scan -RestrictPrivileges
>
> --
> Jon
>
>

My System SpecsSystem Spec
Old 02-22-2007   #4 (permalink)
Jon
Guest


 

Re: Commands for Defender scan using Task Scheduler

Don't think so. Can't see that option in its documentation.......


Windows Defender Command Line Utility (c) 2006 Microsoft Corporation
Use this tool to automate and troubleshoot Windows Defender

Usage:
mpcmdrun.exe [command] [-options]

Command Description
-? [h] Displays all available options for this
tool
-Scan [-ScanType] Scans for malicious software
-SignatureUpdate Checks for new definition updates
-Trace [-Grouping] [-Level] Starts diagnostic tracing
-GetFiles Collects support information
-RemoveDefinitions [-All] Restores the installed signature
definitions
to a previous backup copy or to the
original
default set of signatures
-GetSWE Exports information about software
installed
on your computer

Additional Information:

Support information will be in the following directory:
C:\ProgramData\Microsoft\Windows Defender\Support

-Scan [-ScanType]
0 Default, according to your configuration
1 Quick scan
2 Full system scan

-Trace [-Grouping] [-Level]
Begins tracing Windows Defender's actions. You can specify
the components for which tracing is enabled and how much information
is recorded for each component. If no level is specified,
the Error, Warning, Informational, and Assert levels will be logged.

[-Grouping]
0x1 Service
0x2 Malware Protection Engine
0x4 User Interface
0x8 Real-Time Protection
0x10 Scheduled actions

[-Level]
0x1 Errors
0x2 Warnings
0x4 Informational messages
0x8 Function calls
0x10 Assertions

-GetFiles
Gathers the following log files and packages them together in a
compressed file in the support directory

- Any trace files from Windows Defender
- The Windows Update history log
- All WinDefend or WinDefendRtp events from the
System and Application event log
- All relevant Windows Defender registry locations
- All software information from Software Explorer

-RemoveDefinitions
Restores the last set of signature definitions

-RemoveDefinitions -All
Rolls the signature definitions back to the default signature set,
version 1.0.0.0, and removes any installed signature and engine
files.
Use this option if you have difficulties trying to update
signatures.

-GetSWE
Exports the contents of Software Explorer into a file named
MPSWE.txt
in the support directory



--
Jon


"Bruggie" <Bruggie@discussions.microsoft.com> wrote in message
news:B20460C4-EA1A-4864-857D-9097FDE08F21@microsoft.com...
> Thanks for the reply. I'm doing it like this (a quick scheduled scan which
> supposisdly checks for updates):
> C:\Program Files\Windows Defender\MpCmdRun.exe Scan -ScanType 1
> -SignatureUpdate
>
> Does anyone know how get it to do a full scan of just the "C: drive"? The
> The trouble is that the long scan takes about 5 hours because it gets
> trapped
> in backup archives on my D: drive.
>
>
>
> "Jon" wrote:
>
>> "Bruggie" <Bruggie@discussions.microsoft.com> wrote in message
>> news:9FCD1BCC-07A2-45BA-B1B9-BE7993F68A74@microsoft.com...
>> >I prefer to have all my scheduled system tasks centralised...so I'd like
>> >to
>> > schedule a Defender scan using the *Vista's Task Scheduler*, rather
>> > than
>> > configuring it with the scan options in Defender itself.
>> >
>> > Can anybody tell me the correct command lines and switches to schedule
>> > a
>> > *full* system scan which runs after *checking for updates*, and without
>> > the
>> > GUI or user input etc? What other options should I set to ensure it
>> > runs
>> > unattended in the middle of the night?
>> >
>> > thanks

>>
>>
>> Something along these lines
>>
>> c:\program files\windows defender\MpCmdRun.exe Scan -RestrictPrivileges
>>
>> --
>> Jon
>>
>>


My System SpecsSystem Spec
Reply
Update your Vista Drivers

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule a task with Vista task Scheduler wakes up computer and mo Michele Vista General 1 06-05-2008 05:27 AM
Permissions Needed to Add a Task Using Task Scheduler 2.0 João Bragança Vista General 0 05-29-2008 03:39 PM
Task scheduler returns an error : the task image is corrupt ortamp Jean-David Vista performance & maintenance 2 05-03-2008 10:02 AM
Task Scheduler repeat task duration bug? sm02463 Vista General 1 12-05-2007 01:40 AM
Task Scheduler: Repeat Task and Duration kirsch59 Vista General 6 07-11-2007 05:01 PM


Complimentary Industry Resources

Vista Forums has joined forces with TradePub.com to offer you a new, exciting, and entirely free professional resource. Visit http://vistax64.tradepub.com today to browse our selection of complimentary Industry magazines, white papers, webinars, podcasts, and more across 34 industry sectors. No credit cards, coupons, or promo codes required. Try it today!




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51