Scripting Blog [archived]

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

Use an Easy PowerShell Command to Search Files for Information

Summary: Learn how to use a Windows PowerShell command to search easily for information in a collection of files.   (image) 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? &...

Use Microsoft .NET Framework String Methods from Windows PowerShell

  Summary: Microsoft Scripting Guy Ed Wilson teaches how to use .NET Framework string methods from within Windows PowerShell,   (image) Hey, Scripting Guy! There are many things I need to do with strings and with text files that do not seem to be supported with Windows PowerShell. It is strange, but many common operations seem ...

Use .NET Framework Classes to Work with Strings in Windows PowerShell

  Summary: Learn how to use .NET Framework classes to work with strings in Windows PowerShell in this Scripting Guys how-to post.   (image) Hey, Scripting Guy! I have been writing VBScript code for years. One thing I really liked about VBScript was the large number of functions that manipulated strings. I know Microsoft seems to love...

Get Windows Power Plan Settings on Your Computer by Using PowerShell

  Summary: Use Windows PowerShell to retrieve the power plan settings for your computer. The Microsoft Scripting Guys show you how.   (image) Hey, Scripting Guy! I need to have a way to easily retrieve the power plan settings for the active power plan on my computer. I would like to have an easy to read display of the setting name, ...