Showing results for Select-String - Scripting Blog [archived]

Aug 5, 2011
0
0

Use PowerShell to Open Files That Contain Matching Words

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to search a folder for matching strings and to open them automatically in Notepad.   Hey, Scripting Guy! I have been enjoying using the Select-String cmdlet, but I have a question. When I use Select-String, it lists the file that it finds the match in, but I have to copy and paste from there in orde...

Scripting Guy!Windows PowerShellscripting techniques
Aug 4, 2011
1
0

Use an Easy PowerShell Command to Search Files for Information

Doctor Scripto
Doctor Scripto

Summary: Learn how to use a Windows PowerShell command to search easily for information in a collection of files.   Hey, Scripting Guy! I need to be able to parse multiple files for text that are in a single folder. I hate to have to write a script for such a common task, but I am afraid I will have to do so. Can you help me? —SH   ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 3, 2011
0
0

Learn How to Use PowerShell to Parse the Firewall Log

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy Ed Wilson shows how to use Windows PowerShell to parse the Windows Firewall log.   Hey, Scripting Guy! I am wondering about the firewall log on my computer. I was in a hotel recently, and I noticed that the network adapter light kept flashing, but I was not like doing anything really. When I tried to look at th...

Scripting Guy!Windows PowerShellscripting techniques
Aug 2, 2011
0
0

Use the PowerShell Select-String Cmdlet to Parse WMI Output

Doctor Scripto
Doctor Scripto

Summary: Learn how to use the Windows PowerShell Select-String cmdlet to easily parse WMI output.   Hey, Scripting Guy! I have a quick question: is it possible to parse the output of some of the WMI commands? I know they return objects, but some of the commands return sooooo much data. I would like a quick and easy way to look for specific thi...

Scripting Guy!Windows PowerShellscripting techniques
Aug 1, 2011
0
0

Use the PowerShell Grep Command to Parse the Command Line

Doctor Scripto
Doctor Scripto

Summary: In this article, Microsoft Scripting Guy Ed Wilson teaches how to use the Windows PowerShell version of grep to parse the command line.   Hey, Scripting Guy! I have enjoyed reading Sean’s legacy scripting articles, but I am a bit confused. It seems that all these commands return data, and I would love to be able to easily parse ...

Scripting Guy!Windows PowerShellscripting techniques