Announcement

Collapse
No announcement yet.

Collect 5 Most Recent Warning Windows Event Logs In Security Category ( Python )

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Collect 5 Most Recent Warning Windows Event Logs In Security Category ( Python )

    You can collect the 5 most recent warning Windows Event logs in security category with below script:
    import os;
    seclogs=os.popen('wevtutil qe Security "/q:*[Security [(Level=3)]]" /f:text /c:5 /rd:True').read()
    print(seclogs);



Working...
X