Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Open Files That Contain Matching Words

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

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

Expert Solution for 2011 Scripting Games Beginner Event 6: Parse the Windows Update Log for Errors with PowerShell

Summary: Microsoft MVP, Sean Kearney, uses Windows PowerShell to solve 2011 Scripting Games Beginner Event 6 and parse the Windows update log for errors. Microsoft Scripting Guy, Ed Wilson, here. Today we have Sean Kearney to provide his solution for Beginner Event 6. Sean Kearney is an infrastructure support analyst and Microsoft MVP in ...

The 2011 Scripting Games Beginner Event 5: Use PowerShell to Collect Basic Computer Information

Summary: Beginner Event 5 uses Windows PowerShell to collect basic computer information. About this event Event scenario You need to collect the user name, computer name, domain name, and the operating system information from a number of computers. To make matters easier, you have decided to write the information to a text file. The text ...

Scripting Wife Uses PowerShell to Create Files Automatically

Summary: The Scripting Wife learns how to use Windows PowerShell to automatically create files with the date stored in them. The room seems quiet now. I take a deep breath, let it out slowly, and begin to relax. My name is Ed Wilson. I am the Microsoft Scripting Guy. I have just completed the second in a series of five Live Meetings during ...