Hviidnet.com
24Jun/100

Powershell pipes and eventlog

Get-EventLog System | Where-Object {$_.entrytype -like "*rror"} | Where-Object {$_.Message -like "*failed*"}| Select-Object message | Export-Clixml c:\wee.xml

 

make it a variable with $Results = Get-EventLog System | Where-Object {$_.entrytype -like "*rror"} | Where-Object {$_.Message -like "*failed*"}| Select-Object message

Related posts:

  1. Powershell: A simple RSS Reader
  2. Nice powershell snippets to do diffrent stuff
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.