Scripting Blog [archived]

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

Don’t Write Scripts: Use Snippets

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell snippets to avoid scripting demands. (image)  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...

PowerTip: Run Part of PowerShell Command

Summary: Learn how to run part of a command in the Windows PowerShell ISE. (image)  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? (image)  Highlight only the portion of the script you want to test, and...

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