Windows 10: How to export Event Viewer logs in Windows 11/10

Discus and support How to export Event Viewer logs in Windows 11/10 in Windows 10 News to solve the problem; [IMG]Event Viewer in Windows creates a record of events that occurred on your computer. So, let’s say an application fails to start for some reason;... Discussion in 'Windows 10 News' started by WinClub, Aug 14, 2023.

  1. WinClub New Member

    How to export Event Viewer logs in Windows 11/10


    How to export Event Viewer logs in Windows 11/10 [​IMG]
    Event Viewer in Windows creates a record of events that occurred on your computer. So, let’s say an application fails to start for some reason; the Event Viewer will capture it and create a log. In this post, we will see how you can export Event Viewer logs. Export Event Viewer Logs in Windows 11/10 […]

    This article How to export Event Viewer logs in Windows 11/10 first appeared on TheWindowsClub.com.

    read more...
     
    WinClub, Aug 14, 2023
    #1
  2. ddelo Win User

    Export All Administrative Events to Excel

    To analyze events, from the Windows Event Viewer, there is a simple way to export all Administrative Events to Excel, with PowerShell.

    Exporting all Administrative Events to Excel is a simple two Step process, as described here:

    Step 1 - Create the Administrative Events View .xml file
    1. Open Eventviewer (%windir%\system32\eventvwr.msc)
    2. Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    3. In the “Actions” pane select “Filter Current Custom View”.
    4. Select the the XML tab.
    5. Press Ctrl+A to select all the XML code of the Custom View.
    6. Open a notepad, paste the selected code and save the file to your Desktop as AdmEvtView.xml


    Step 2 - Create the csv file with the events
    1. Download the ExportEvtCSV.zip file, which contains the script ExportEvtCSV.ps1 and unzip it, on your Desktop.
      It's not a fancy script, just basic PowerShell commands to create a csv file on the Desktop.
    2. In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    3. To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Code:
    4. In the Windows PowerShell ISE, open and run the script: ExportEvtCSV.ps1
      The script will create a csv file with a name YYYYMMDD.HHMM.csv on the Desktop
    5. When done, open the newly created .csv file, format the columns as needed and optionally save it as .xlsx, if you wish.
    That’s it! You now have all the Administrative Events in Excel for filtering and further analysis. How to export Event Viewer logs in Windows 11/10 :)

    Now to the more technical hard stuff... *Confused

    There is a reason for running the script from within PowerShell ISE!

    It would be great if everything was also working perfectly, when running the script from an elevated PowerShell too.

    We can run it from an elevated PowerShell, which means that you just follow the Step 1, as above but for the Step 2 instead of the ISE you run the script from an elevated PowerShell.

    The problem is that it will work only for anybody who has en-US format for the dates. Everyone else, who has another format (i.e. en-GB, fr-FR, el-GR etc.), the dates are not translated properly by Excel (although the script uses the –UseCulture switch) and remain as text in the en-US format.

    I'm not sure if this a bug of the "export-csv" cmdlet, but although it runs the way it supposed to from within the ISE, from PowerShell there is a problem with the dates format.
    As I haven’t found a way to overcome this obstacle, any suggestion from the PowerShell gurus of the forum (like my good friend Shawn @Brink, for instance), is welcome.
     
    ddelo, Aug 14, 2023
    #2
  3. Nikhar_K Win User
    Error in Event Viewer

    Hi,



    Thank you for writing to Microsoft Community Forums.



    As you have mentioned, you have performed a repair installation on the computer and you see Event 508, 510 and 533 in Event Viewer.



    I would like to inform that if you see any critical error in Event Viewer, please share the event logs with us to help you with the appropriate troubleshooting steps. Please follow the steps mentioned below to share the event logs:



    1. Press Windows + X from the keyboard, select
      Event Viewer.
    2. Expand Windows Logs from the left pane and select
      Applications.
    3. Click Filter Current Log from extreme right pane. Then in the new windows check the box beside
      Error and click OK.
    4. Now, look for a critical Error in the list and note down the message/information from the
      General Tab in the lower section.


    Please reply with the status of the issue, we will be glad to help you further.



    Regards,

    Nikhar Khare

    Microsoft Community - Moderator
     
    Nikhar_K, Aug 14, 2023
    #3
  4. JohnBurns Win User

    How to export Event Viewer logs in Windows 11/10

    Clear All Event Logs in Event Viewer in Windows  


    FWIW CCleaner will clear the Event Viewer Logs - just check the box under Windows>Advanced>Windows Events Logs. run CCleaner and it's that simple. Much faster than most ,bat files I've tried. Just a suggestion.
     
    JohnBurns, Aug 14, 2023
    #4
Thema:

How to export Event Viewer logs in Windows 11/10

Loading...
  1. How to export Event Viewer logs in Windows 11/10 - Similar Threads - export Event Viewer

  2. Event viewer Log

    in Windows 10 Gaming
    Event viewer Log: In the Window OS event viewer, is it possible to log the overwriting, alteration, deletion of file?* Overwriting: O or X* Alteration: O or X* Deletion: O or X https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-log/b71317ee-9f82-4694-82a9-aafbacb69e33
  3. Event viewer Log

    in Windows 10 Software and Apps
    Event viewer Log: In the Window OS event viewer, is it possible to log the overwriting, alteration, deletion of file?* Overwriting: O or X* Alteration: O or X* Deletion: O or X https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-log/b71317ee-9f82-4694-82a9-aafbacb69e33
  4. Event viewer Log

    in AntiVirus, Firewalls and System Security
    Event viewer Log: In the Window OS event viewer, is it possible to log the overwriting, alteration, deletion of file?* Overwriting: O or X* Alteration: O or X* Deletion: O or X https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-log/b71317ee-9f82-4694-82a9-aafbacb69e33
  5. Event Viewer Audio logs

    in AntiVirus, Firewalls and System Security
    Event Viewer Audio logs: Hello,I have been trying to look for audio logs which can show me when the device PC/Laptop was muted, and when the volume status was changed. In Event Viewer, both Windows>System and Application and Services Logs>Microsoft>Windows>Audio none are visible for the mute...
  6. Event Viewer Log Files

    in Windows 10 Software and Apps
    Event Viewer Log Files: I've noticed my disk space is running low and I've found Event Viewer log files are taking up 25GB. The log file size limit is set to the default of 20480 KB and set to overwrite.I'm sure they shouldn't be taking this much space up.Here's a screenshot of what I'm seeing.Does...
  7. Event Viewer logs are missing in Windows 10

    in Windows 10 News
    Event Viewer logs are missing in Windows 10: [ATTACH]Event Viewer is a Windows service that allows software and Windows to log actions […] This article Event Viewer logs are missing in Windows 10 first appeared on TheWindowsClub.com. read more...
  8. Event Viewer Log.

    in Windows 10 Ask Insider
    Event Viewer Log.: Need to create an event viewer log that tracks USB connects and disconnects. I have all my USB devices disconnecting and reconnecting. I need to identify if it's possibly my UPS (usb connected to PC), because it showed I had a battery discharge when i first installed my...
  9. How to enable Print Logging in Event Viewer on Windows 10

    in Windows 10 News
    How to enable Print Logging in Event Viewer on Windows 10: [ATTACH] [ATTACH]Print Logging can be useful to find out the number of prints that may have ben made from a single computer, with or without your consent. Event Viewer in Windows 10 lets you view the complete log of all recently [...] This post How to enable Print Logging in...
  10. Event Viewer Logs

    in Windows 10 Support
    Event Viewer Logs: I’m currently on Win10 Pro x64, version 1709, Build 16299.371. Searching in my Event Viewer, I noticed some logs under the “Applications and Services Logs” folder, which I don’t recall having previously (pointed with red arrow, in the image) and are all inactive! Can...