List Windows Logs

Powershell is really nice and useful. Although it requires a learning cost as most of the other languages, for windows admis it may make the life better and easier.

In the sample below, all windows log file names are printed to the screen. By the way, if working with windows logs search or look automation, check “wevutil.exe” (https://technet.microsoft.com/en-us/library/cc732848(v=ws.11).aspx).

wevtutil.exe el|%{Write-Host $_}
Advertisements