Be careful with start and end dates when search for files or through event logs. Often people want to see what happened yesterday
If you do this
PS> $end = Get-Date PS> $start = (Get-Date).AddDays(-1) PS> $start
30 October 2016 16:32:35
PS>… Read the full text.