Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Get Events for Specific Day

$
0
0

Summary: Use Windows PowerShell to get event log events that occur on a specific day.

Hey, Scripting Guy! Question How can I use Windows PowerShell to get application event log events that occur only on Sept. 24, 2015?

Hey, Scripting Guy! Answer Use the Get-EventLog cmdlet and specify the log name and the before and the after dates, for example:

Get-EventLog -LogName application -After "9/24/15" -Before "9/25/15"


Viewing all articles
Browse latest Browse all 3333

Trending Articles