Skip to content

Instantly share code, notes, and snippets.

@torgro
Created August 26, 2016 20:25
Show Gist options
  • Save torgro/133c07130b05d630314a907a7642f495 to your computer and use it in GitHub Desktop.
Save torgro/133c07130b05d630314a907a7642f495 to your computer and use it in GitHub Desktop.
$GetEventLog = @{
After = Get-Date -Date "22.08.2016"
LogName = "System"
EntryType = "Information"
InstanceId = 6006
}
$GetEventLog.Add("Before",$GetEventLog.After.Adddays(5))
$startup = Get-EventLog @GetEventLog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment