Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Analyzing PowerShell Script Files

Summary: Learn how to analyze Windows PowerShell script files. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sitting around sipping a cup of English Breakfast tea. I added some peppermint, spearmint, lemon grass, licorice root, and a cinnamon stick to the pot. The result is a very refreshing cup of tea. I am sitting on the ...

Use Select-String Cmdlet in PowerShell to View Contents of Log File

Summary: Use the Windows PowerShell cmdlet, Select-String, to view the contents of a log file. (image)  Hey, Scripting Guy! I have a log file that I created by dumping process information from Get-Process. It is quite long, and I am trying to use Select-String to find the number of instances of a certain process. The problem is that when ...