Windows 10: Failed to clear event logs

Discus and support Failed to clear event logs in Windows 10 Performance & Maintenance to solve the problem; Hi @Brink, hope you are around for this! LOL This has not occurred between October 16, 2016, when I purchased this it, and today. So, if it is a... Discussion in 'Windows 10 Performance & Maintenance' started by JimHarmon, Dec 16, 2017.

  1. JimHarmon Win User

    Failed to clear event logs


    Hi @Brink, hope you are around for this! LOL
    This has not occurred between October 16, 2016, when I purchased this it, and today.
    So, if it is a minor issue, I am OK with ignoring these results.

    Failed to clear event logs

    Failed to clear event logs using Clear_Event_Viewer_Logs.bat, which I downloaded yesterday.
    Please note the three logs just below:

    clearing "Microsoft-Windows-LiveId/Analytic"
    Failed to clear log Microsoft-Windows-LiveId/Analytic.
    Access is denied.

    clearing "Microsoft-Windows-LiveId/Operational"
    Failed to clear log Microsoft-Windows-LiveId/Operational.
    Access is denied.

    clearing "Microsoft-Windows-USBVideo/Analytic"
    Failed to clear log Microsoft-Windows-USBVideo/Analytic.
    The instance name passed was not recognized as valid
    by a WMI data provider.

    ===============================================================

    Clear_Event_Viewer_Logs.bat

    :: Created by: Shawn Brink
    :: Created on: August 15th 2016
    :: Updated on: May 13th 2017
    :: Tutorial: Clear All Event Logs in Event Viewer in Windows Performance Maintenance Tutorials


    @echo off

    FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
    IF (%adminTest%)==(Access) goto noAdmin
    for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
    echo.
    echo All Event Logs have been cleared!
    goto theEnd

    :do_clear
    echo clearing %1
    wevtutil.exe cl %1
    goto :eof

    :noAdmin
    echo Current user permissions to execute this .BAT file are inadequate.
    echo This .BAT file must be run with administrative privileges.
    echo Exit now, right click on this .BAT file, and select "Run as administrator".
    pause >nul

    :theEnd
    =============================================================================

    psjimm
    "No one can help everyone but everyone can help someone"
    Ronald Reagan

    p.s.
    I activated the build-in Administrator account, same results.
    At first I had used the Win 7 Clear Viewer V2.bat which I had downloaded from Seven Forums on June 16, 2015

    Dell Inspiron 570
    64-Bit
    Windows 10 Pro
    See Attached CPU-ID Report on my Dell Inspiron 570

    :)
     
    JimHarmon, Dec 16, 2017
    #1

  2. File history says it's working but the total space stays at zero

    Thank you for your reply. I cleared down all the backup space on the WD MyBookLiveDuo and set up a new user. I have now run chdsk successfully, but the problem remains. I have tried looking in the event logs but I don't know where to look - there are all
    kinds of events!

    In any case, I would expect that if the backup software is failing to back up, it should tell me as a user. Failing to back up is a serious condition, and it's not the job of any backup software to hide it - even if further details are kept in event logs.
     
    Cathode Follower, Dec 16, 2017
    #2
  3. Failed to write Event Logs from Windows 10 work station to Windows 12 Server.

    Hello TJ,

    For your concern, we recommend that you post your concern to Microsoft
    TechNet
    for more advance troubleshooting. We are certain that you will be provided by the resolution you're looking for.

    Thank you.
     
    Antoneth Ber, Dec 16, 2017
    #3
  4. Brink
    Brink New Member

    Failed to clear event logs

    Hello Jim, and welcome to Ten Forums. *Smile

    Just to verify, did you right click on the .bat file and click on "Run as administrator"?
     
    Brink, Dec 16, 2017
    #4
  5. JimHarmon Win User
    Brink asked
    "Just to verify, did you right click on the .bat file and click on "Run as administrator"?

    Yes, I did and I was in the hidden Admin account, bat not blocked.
    My apologies for the delay responding!
    Ran it on a Win 7 and a Win 10 machine
     
    JimHarmon, Dec 23, 2017
    #5
  6. Brink
    Brink New Member
    No problem Jim. *Smile

    It's not unusual for some of the event logs to not get cleared. I got "Access is denied" for the eact same ones you did. This can happen if they're in use or protected by the system.
     
    Brink, Apr 4, 2018
    #6
Thema:

Failed to clear event logs

Loading...
  1. Failed to clear event logs - Similar Threads - Failed clear event

  2. Event viewer clear logs without administrator privileges

    in Windows 10 Gaming
    Event viewer clear logs without administrator privileges: Dear Microsoft Team,I have a windows 11 laptop. When I am logged with a non-admin user, I cannot clear logs. Is there a possibility to permit this non-admin user to clear logs in Event Viewer?Regards....
  3. Event viewer clear logs without administrator privileges

    in Windows 10 Software and Apps
    Event viewer clear logs without administrator privileges: Dear Microsoft Team,I have a windows 11 laptop. When I am logged with a non-admin user, I cannot clear logs. Is there a possibility to permit this non-admin user to clear logs in Event Viewer?Regards....
  4. Windows 10 Build 2004 clears event logs in Event Viewer and starts over

    in AntiVirus, Firewalls and System Security
    Windows 10 Build 2004 clears event logs in Event Viewer and starts over: I noticed this behavior when i did an inplace upgrade to this build version. Previous Records are not archived, they are just gone. Why is this happening?...
  5. Failed to clear log Microsoft-Windows-USBVideo/Analytic

    in Windows 10 Performance & Maintenance
    Failed to clear log Microsoft-Windows-USBVideo/Analytic: I have a Windows 10 64-bit version 1909. When I run wevtutil el | Foreach-Object {wevtutil cl "$_"} in PowerShell Iget error, Failed to clear log Microsoft-Windows-USBVideo/Analytic [img] [img] 158723
  6. Cannot clear Event Viewer logs with .ps1 script

    in Windows 10 Performance & Maintenance
    Cannot clear Event Viewer logs with .ps1 script: I created a PowerShell script saved as a .ps1 file, which is stated below. Whenever I run it, it says "Access is denied" and does not clean Event Viewer logs. Please take a look at the attached screenshots and let me know what I am doing wrong. By the way, whenever I run the...
  7. Cannot clear Event Viewer logs with .ps1 script

    in Windows 10 Support
    Cannot clear Event Viewer logs with .ps1 script: I created a PowerShell script saved as a .ps1 file, which is stated below. Whenever I run it, it says "Access is denied" and does not clean Event Viewer logs. Please take a look at the attached screenshots and let me know what I am doing wrong. By the way, whenever I run the...
  8. How to clear the Event Log in Windows 10

    in Windows 10 News
    How to clear the Event Log in Windows 10: [ATTACH] Windows 10 is known for acting up now and again with several types of errors. Now, you may want to get a deeper understanding of the errors, and that’s where the Event Log comes into play. Event Log files basically [...] This post How to clear the Event Log in...
  9. Anniversary update clears event log, known behavior?

    in Windows 10 Support
    Anniversary update clears event log, known behavior?: Hello! I noticed that during installation of the anniversary update Windows 10 completely cleared the event log (along with the list of installed updates). Is that a known behavior? Thanks in advance for feedback! 60666
  10. Clear All Event Logs in Event Viewer in Windows

    in Windows 10 Tutorials
    Clear All Event Logs in Event Viewer in Windows: How to: Clear All Event Logs in Event Viewer in Windows How to Clear All Event Logs in Event Viewer in Windows Event Viewer is a tool that displays detailed information as event logs about significant events on your PC. Event logs are special files that record...

Users found this page by searching for:

  1. wevtutil.exe cl microsoft-windows-liveid/analyticfailed to clear log microsoft-windows-liveid/analytic.access is denied.

    ,
  2. ClearEventLogs.bat

    ,
  3. Microsoft-Windows-LiveId/Operational

    ,
  4. Failed to clear log Intel-SST-CFD-HDA/IntelSST. The instance name passed was not recognized as valid by a WMI data provider.,
  5. wevtutil : Failed to clear log Microsoft-Windows-LiveId/Analytic. Access is denied