Scripting Blog

A place to learn about PowerShell and share stories of automation

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.   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 &...

Using the PowerShell Tokenizer to Find Commands in Text

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use the Windows PowerShell tokenizer to parse text and identify commands. Microsoft Scripting Guy, Ed Wilson, here. There are still five days for you to submit your entries for the 2011 Scripting Games. Events 1 through 5 are in the bag, but you can still upload scripts for events 6 ...

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,   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 to have ...

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.   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 XML, ...

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.   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, the ...

Feedback usabilla icon