Location of MpCmdRun.log

Page 1 of 2 12 LastLast

  1. Posts : 278
    Windows 10 Home 22H2
       #1

    Location of MpCmdRun.log


    This logfile used to be located in Windows/Temp but that changed after some cumulative update to 1909. I'm using a third party AV but since Windows Defender's service still runs despite of that it used to create daily entries in that logfile, resulting in its growing over time. The file could be deleted safely since the service recreates it when it runs the next time.

    Searching the whole C:/Windows folder yields no results even if hidden folders are shown. It's no longer present or does it go by a different name now?
    Last edited by i486; 02 Oct 2020 at 12:24.
      My Computer


  2. Posts : 915
    Windows 10 Pro 64bit 22H2 19045.3324
       #2

    i486 said:
    It's no longer present or does it go by a different name now?
    C:\Users\<UserName>\AppData\Local\Temp\MpCmdRun.log
      My Computers


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    You can just paste this straight into a shortcut or File explorer's address bar.

    C:\Users\%UserName%\AppData\Local\Temp\MpCmdRun.log

    I don't know if yours will have anything in it.
    Mine has my record of MpCmdRun scripts [updates & scans] that I deliberately run using MpCmdRun's command line switches.
    I don't think WD's automatic updates make use of MpCmdRun.

    I have never cleaned my file out or deliberately replaced it. It is 2MB. Hardly even worth considering its size really.

    Denis
      My Computer


  4. Posts : 1,604
    Win 10 home 20H2 19042.1110
       #4

    What third party Av are you using?
      My Computers


  5. Posts : 915
    Windows 10 Pro 64bit 22H2 19045.3324
       #5

    Try3 said:
    I don't know if yours will have anything in it.
    Mine has my record of MpCmdRun scripts [updates & scans] that I deliberately run using MpCmdRun's command line switches.
    I don't think WD's automatic updates make use of MpCmdRun.
    Try3 makes a good point. This ...\ AppData\Local\Temp\MpCmdRun.log is only from my own MpCmdRun.exe scheduled tasks like scans and signature updates.

    However, now looking in C:\Windows\Temp I do see a MpCmdRun.log which shows things like scans, cleanup, signature updates and cache maintenance entries since my clean install May 27. It's only about 1.3 Mb.
      My Computers


  6. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    I believe that C:\Windows\Temp\MpCmdRun.log is the log that ought, logically, to be maintained if another AV is in use. But the OP said he does not have one.

    On 3 computers, C:\Windows\Temp\MpCmdRun.log varies between 1-3MB. So nothing worth taking any action about.

    Denis
    Last edited by Try3; 02 Oct 2020 at 08:39.
      My Computer


  7. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    I have shortcuts to each log.

    1 C:\Users\%UserName%\AppData\Local\Temp\MpCmdRun.log
    This is straightforward.
    I named this shortcut WD MpCmdRun log - user
    Properties, Target field - C:\Users\%UserName%\AppData\Local\Temp\MpCmdRun.log

    2 C:\Windows\Temp\MpCmdRun.log
    This is awkward.
    I named this shortcut WD MpCmdRun log - application [Admin]
    Properties, Target field - cmd.exe /c "C:\Windows\Temp\MpCmdRun.log"
    Properties, Comment field - Cmd window remains open while this file is open
    Properties, Advanced - Run as Admin

    Denis
      My Computer


  8. Posts : 5,330
    Windows 11 Pro 64-bit
       #8

    Please open the Command Prompt by typing cmd.exe into Start Menu, right-click on Cmd.exe, and open it as an administrator.

    Execute below command to list locations of MpCmdRun.log file.


    Code:
    where /r C:\ MpCmdRun.log
      My Computer


  9. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #9

    FreeBooter said:
    Please open the Command Prompt by typing cmd.exe into Start Menu, right-click on Cmd.exe, and open it as an administrator.
    Execute below command to list locations of MpCmdRun.log file.
    Code:
    where /r C:\ MpCmdRun.log
    Excellent suggestion. I suggest a slight variation to capture sizes and modified dates-times as well
    Code:
    where /r C:\ MpCmdRun.log /t
    These were my results
    Code:
       2190042   02/10/2020      12:39:24  C:\Users\%UserName%\AppData\Local\Temp\MpCmdRun.log
          3364   19/11/2018      10:59:24  C:\Windows\Microsoft Antimalware\Tmp\MpCmdRun.log
         11036   18/12/2019      15:01:57  C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\MpCmdRun.log
       1798874   02/10/2020      01:31:37  C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\MpCmdRun.log
       3625540   02/10/2020      12:39:24  C:\Windows\Temp\MpCmdRun.log

    The two copies we have been discussing are the biggest ones and were the last ones to be written to. I don't suppose the same things are being written in any of them

    Whilst they don't even add up to a size that is worth any effort to clean up manually, I'm a bit surprised that routine Disk cleanup [including system files & all checkboxes] has not removed those 2018, 2019 ones.

    I made the shortcuts to the two we've been discussing but I have never used them for anything productive.

    Denis
    Last edited by Try3; 02 Oct 2020 at 13:03.
      My Computer


  10. Posts : 278
    Windows 10 Home 22H2
    Thread Starter
       #10

    Jacee said:
    What third party Av are you using?
    Kaspersky Internet Security 2020. Another computer that I help maintain has the same build of Windows and the same AV, also the same version as mine, and that computer has the logfile where it should be. I'm thinking that the reason I don't have it must have something to do with my actions. It's not KIS's "Privacy Cleaner" task, I ran it on the other computer and it doesn't delete the logfile even though it advertises that it can empty a "TEMP folder", that's pretty vague since there are several Temp folders in a Windows system in various places. Mine has been almost empty for several months now, there's only a WinSAT folder sitting there.

    I searched the whole C:/Users directory and it's not there either, but I found two of them in C:/Windows/ServiceProfiles with the code FreeBooter posted. The one in LocalService seems to have been updated regularly, the one in NetworkService has not.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:29.
Find Us




Windows 10 Forums