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);
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);