Powershell get-messagetrackinglog
Hi
I want to display all the message with these properties -EventID "FAIL" -Source "AGENT" -SourceContext "Agent". I tried this
get-messagetrackinglog -EventID "FAIL" -Source "AGENT" -SourceContext "Agent" -Start "3/20/2011 9:26:00 AM" -End "4/20/2011 9:36:00 AM"
This is not working!
Thanks for your helps
DS
April 20th, 2011 10:38am
Something like:
get-messagetrackinglog -EventID "FAIL" -Start "3/20/2011 9:26:00 AM" -End "4/20/2011 9:36:00 AM" | where-object {$_.Source -eq "AGENT"}
You really dont need to filter on SourceContext, its extra info.
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2011 10:51am