Holy Smoke! (anybody looked at mpcmdrun arguments lately?)

B

Bill Sanderson MVP

I just looked at mpcmdrun to check on whether it was possible to schedule a
custom scan--and I'm still reading--there's a ton of new stuff since last I
looked--including major diagnostic stuff, things that should aid in
repairing both definition-related issues and other program failures--lots of
new stuff--take a look.

--
 
T

Tom Emmelot

Hello Bill,

I already give the whole list a while ago and give the commands to some
fellows to get rid of the def and get the new ones, but Steve Dodson
reply to me that it not work for a lot of the problems! So i stop to
give the lines.
It is doing it the hard way like I give some time ago, like Stop the
msmpeng and msascui , delete the whole stuff in All users and do a new
update. It work for me the last time when i did not get the latest def.


Regards >*< TOM >*<

Bill Sanderson MVP schreef:
 
B

Bill Sanderson MVP

Thanks--I'll experiment--carefully. I tried the command to dump the
Software Explorers to a file first, but I haven't managed to find the file
yet!


--
 
T

Tom Emmelot

Hi Bill,

you can find it here!
C:\Documents and Settings\All Users.WINDOWS2\Application
Data\Microsoft\Windows Defender\Support\

Regards >*< TOM >*<



Bill Sanderson MVP schreef:
 
B

Bill Sanderson MVP

Yes--found it just after writing that. should have known it was in all
users--that makes sense, once you think about it a bit.
--
 
T

Tom Emmelot

Hi Bill,

for you the whole story, thats why i found it. ;)

Regards >*< TOM >*<

Bill Sanderson MVP schreef:
Yes--found it just after writing that. should have known it was in all
users--that makes sense, once you think about it a bit.

Windows Defender Command Line (c) 2006 Microsoft
Used to enable advanced logging and troubleshooting tools for Windows Defender

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

Command Description
-? [h] Displays all the available command-line
options for this tool
-Scan [-ScanType] Run Scan
-SignatureUpdate Checks for new definition updates
-StartTrace [-Grouping] [-Level] Starts WPP tracing
-StopTrace Stops WPP tracing
-GetFiles Collects all relevant logs for support
-RemoveDefinitions [-All] Removes definition updated sets the user
back to either the previous one (backup)
or the (default)
-Restoredefaults Resets the Windows Defender registry
settings to known good defaults
-GetSWE Exports contents of Software Explorer
into a text file

Additional Information:

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

-StartTrace [-Grouping] [-Level]
Begins WPP tracing.
Optionally user can specify a set grouping of components
to enable tracing for. A user can also specify the level
of tracing for that grouping. If no grouping specified
then trace will be for all components. If no level
specified tracing will log all info except 'Function'
(Error, Warning, Informational, Assert)

[-Grouping]
0x1 Service
0x2 Engine
0x4 UI
0x8 RTP
0x10 Scheduler

[-Level]
0x1 Error
0x2 Warning
0x4 Informational
0x8 Function
0x10 Assert

-StopTrace
Stops WPP tracing and saves tracing file. The command
takes no filename parameter, the trace log file is
always saved with the same name and in same location.
Any existing trace log file is overwritten. Name for
the trace log will be 'WDTrace.log' and will be saved in
ProgramData\Microsoft\Windows Defender\Support
directory

-GetFiles
Gathers the following log files and packages them all
together. These files will all be placed in a compressed
format uniquely named in the \Support directory.
- Any trace files from Windows Defender. This file
will always be named WDTrace.log.
- %windir%\Windowsupdate.log
- All events from the NT system and application event
log with source WinDefend or WinDefendRtp. These are
saved as two separate files: WDSystemEvents.txt and
WDApplicationEvents.txt in \Support directory
- Exports the contents of Windows Defender relevent
registry locations to a text file. Place the
contents of the registry export into a file named
WDRegistry.txt and place it in \Support directory
- Exports the contents of Software Explorer into a
text file. The file will always be named WDSWE.txt
and be in the \Support directory

-RemoveDefinitions [-All]
When invoked with out the 'all' option rollback to the
previous signature set - the backup. When invoked with
the 'all' option then rollback to the default set,
remove any signature and engine files on the box and the
service will load the default signatures (1.0.0.0) that
the product shipped with. This allows the user to go
back to a known working signature set and try to update
signatures from there.

-RestoreDefaults
Will reset all registry keys to their default values.
All settings will be restored to equivalent of running
setup unattended without specifying any options.

-GetSWE
Exports the contents of Software Explorer into a text
file. The command takes no filename parameter, the
export log file is always saved with the same name and
in the same location. Any existing log file is
overwritten. Name for the log will be 'WDSWE.txt' and
will be saved in following directory.
ProgramData\Microsoft\Windows Defender\Support
 
T

Tom Emmelot

Hi Bill,

I found out that you can set WD to look for Def updates at startup!
I change it in the registry and it is working, hope that the next time i
got my Def's without problems.

Regards >*< TOM >*<

Bill Sanderson MVP schreef:
 
B

Bill Sanderson MVP

I think it does that automagically in some situations--not sure how it
works. However, I also think that setting is behind some reports that
Windows Defender is causing startup hangs--high CPU usage at startup. Let
me know whether it is noticeable on your system.

--
 
G

Guest

Has anyone tried the RemoveDefinitions command to fix failed updates?

If that works, it will be much better than running Windows installer cleanup
utility which (as I posted in another message here) breaks my Office updates,
detect and repair functionality when I used that to remove WD definitions
install info (since confirmed by another user on another board).
 
B

Bill Sanderson MVP

I had a message from Tom Emmelot that I believe said that Steve Dodson had
discouraged him from using that.
The way I figure it at this point, was that if this was "the fix"--we'd be
seeing it posted by Steve, or included in his KB article. So--I'm going to
ignore those switches for the time being.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top