PowerShell tips – part 009.

Today I come with this simple tutorial about how to show logs from the last day.
The command is very simple and can be used with PowerShell and administrator command shell like this:

This command is built from Get-EventLog and parse by Get-Date, see options:

About AddDays is not the only option you can use it.
You can get all of these options using this command:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.