Scripting Blog

A place to learn about PowerShell and share stories of automation

Don’t Write Scripts: Use Snippets

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell snippets to avoid scripting demands.  Hey, Scripting Guy! One of the things that I find myself having to do from time-to-time is write scripts. I really don’t like to write scripts, but sometimes I cannot find what I need to, and I cannot avoid it. I ...

PowerTip: Run Part of PowerShell Command

Summary: Learn how to run part of a command in the Windows PowerShell ISE.  I am having problems with a small part of a script that I am working on in the Windows PowerShell ISE—           how can I test only that code?  Highlight only the portion of the script you want to test, and press the F-8 ...

Use Regions for PowerShell Comments

Summary: Microsoft Scripting Guy, Ed Wilson, talks about combining regions and Windows PowerShell comments in the ISE. Microsoft Scripting Guy, Ed Wilson, is here. This morning I want to talk about an idea I had the other day when I was on the treadmill. First of all, I will say that walking on a treadmill for an hour is a great way to get ...