Powershell
Return lines with specific string
This is a simple example of the get-string cmdlet.
Is you have to parse some logfiles for example, you can return specific lines to the consoleÂ
by doing this:
select-string -path C:\dcdiag.log -pattern "Failed" –simplematch
Last Updated (Wednesday, 13 May 2009 16:54)