Last active
August 29, 2015 14:26
-
-
Save poshcodebear/2c7ff2a54c73d6058ef2 to your computer and use it in GitHub Desktop.
Get all events from a period of time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-EventLog -List | | |
Select-Object -ExpandProperty Log | | |
foreach { | |
Get-EventLog -LogName $_ -After "01-24-2014 06:00:00" -Before "01-24-2014 07:00:00" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment