Skip to content

Instantly share code, notes, and snippets.

@poshcodebear
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poshcodebear/2c7ff2a54c73d6058ef2 to your computer and use it in GitHub Desktop.
Save poshcodebear/2c7ff2a54c73d6058ef2 to your computer and use it in GitHub Desktop.
Get all events from a period of time
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