Windows 10: Event wiewer

Discus and support Event wiewer in AntiVirus, Firewalls and System Security to solve the problem; HI I have a uestion,,In event viewer in the security section,can delete the number of events in the security log?... Discussion in 'AntiVirus, Firewalls and System Security' started by HectorEdenburg, Aug 12, 2018.

  1. Event wiewer


    HI I have a uestion,,In event viewer in the security section,can delete the number of events in the security log?

    :)
     
    HectorEdenburg, Aug 12, 2018
    #1

  2. about errors in event wiewer

    Can I remove all the errors and warnings from EVENT WIEWER'S ADMINISTRATIVE EVENTS ?

    If I delete will harm my pc? thanks for help
     
    HectorEdenburg, Aug 12, 2018
    #2
  3. about errors in event wiewer

    Can I remove all the errors and warnings from EVENT WIEWER'S ADMINISTRATIVE EVENTS ?

    -> Yes, you can but it will make no difference whatsoever.

    If I delete will harm my pc?

    -> No, it won't.
     
    Frederik Long, Aug 12, 2018
    #3
  4. ddelo Win User

    Event wiewer

    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
    • Open Eventviewer (%windir%\system32\eventvwr.msc)
    • Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    • In the “Actions” pane select “Filter Current Custom View”.
    • Select the the XML tab.
    • Press Ctrl+A to select all the XML code of the Custom View.
    • 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
    • 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.
    • In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    • To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Code: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -force[/quote]
    • 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
    • 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. Event wiewer :)

    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 12, 2018
    #4
Thema:

Event wiewer

Loading...
  1. Event wiewer - Similar Threads - Event wiewer

  2. Kernel Power - Event ID 41

    in Windows 10 Gaming
    Kernel Power - Event ID 41: Hi, I have been getting Kernel Power 41 error since December 2023 and for the past few months, I have tried a lot of things to fix it and just came across this question from this link "May I know how to solve a kernel power 41 error as my computer keeps crashing due to this...
  3. Kernel Power - Event ID 41

    in Windows 10 Software and Apps
    Kernel Power - Event ID 41: Hi, I have been getting Kernel Power 41 error since December 2023 and for the past few months, I have tried a lot of things to fix it and just came across this question from this link "May I know how to solve a kernel power 41 error as my computer keeps crashing due to this...
  4. Kernel Power - Event ID 41

    in Windows 10 BSOD Crashes and Debugging
    Kernel Power - Event ID 41: Hi, I have been getting Kernel Power 41 error since December 2023 and for the past few months, I have tried a lot of things to fix it and just came across this question from this link "May I know how to solve a kernel power 41 error as my computer keeps crashing due to this...
  5. How to retrieve the raw datas of event viewer using window log event api by cpp code?

    in Windows 10 Gaming
    How to retrieve the raw datas of event viewer using window log event api by cpp code?: I need to fetch the raw datas from the friendly view or xml view tab in details tab in event viewer. what to do for that? https://answers.microsoft.com/en-us/windows/forum/all/how-to-retrieve-the-raw-datas-of-event-viewer/0c472e2f-d463-4a3a-8601-89e6706c9132
  6. How to retrieve the raw datas of event viewer using window log event api by cpp code?

    in Windows 10 Software and Apps
    How to retrieve the raw datas of event viewer using window log event api by cpp code?: I need to fetch the raw datas from the friendly view or xml view tab in details tab in event viewer. what to do for that? https://answers.microsoft.com/en-us/windows/forum/all/how-to-retrieve-the-raw-datas-of-event-viewer/0c472e2f-d463-4a3a-8601-89e6706c9132
  7. How to retrieve the raw datas of event viewer using window log event api by cpp code?

    in Windows 10 BSOD Crashes and Debugging
    How to retrieve the raw datas of event viewer using window log event api by cpp code?: I need to fetch the raw datas from the friendly view or xml view tab in details tab in event viewer. what to do for that? https://answers.microsoft.com/en-us/windows/forum/all/how-to-retrieve-the-raw-datas-of-event-viewer/0c472e2f-d463-4a3a-8601-89e6706c9132
  8. What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...

    in Windows 10 Gaming
    What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...: Session "dc3a3596-71e1-45a3-b2ea-39ad5322fe51" failed to start with the following error: 0xC0000022 https://answers.microsoft.com/en-us/windows/forum/all/what-does-this-kernel-pnp-warning-in-event-log/559adb98-d3fd-4eb9-bde4-9f57c3363737
  9. What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...

    in Windows 10 Software and Apps
    What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...: Session "dc3a3596-71e1-45a3-b2ea-39ad5322fe51" failed to start with the following error: 0xC0000022 https://answers.microsoft.com/en-us/windows/forum/all/what-does-this-kernel-pnp-warning-in-event-log/559adb98-d3fd-4eb9-bde4-9f57c3363737
  10. What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...

    in Windows 10 BSOD Crashes and Debugging
    What does this Kernel-PnP Warning in Event Log mean? ?My microphone doesnt work for a game...: Session "dc3a3596-71e1-45a3-b2ea-39ad5322fe51" failed to start with the following error: 0xC0000022 https://answers.microsoft.com/en-us/windows/forum/all/what-does-this-kernel-pnp-warning-in-event-log/559adb98-d3fd-4eb9-bde4-9f57c3363737