Scripting Blog [archived]

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

Use PowerShell to Pause a Script While Another Process Exits

Summary: Learn how to use Windows PowerShell to pause a script and wait for another process to exit before continuing. (image) Hey, Scripting Guy! I am attempting to use Windows PowerShell to shut down an application, but the application is rather complicated. I need to stop one process, and wait for that process to complete before starting ...

Learn How to Create Custom Column Heads for PowerShell Out-GridView

Summary: The Scripting Wife learns how to create custom column headings for the Windows PowerShell Out-GridView cmdlet. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. It is a typical weekend for me. I am up early, sipping a cup of English Breakfast tea, and watching a pot of Irish steel-cut oats simmer on the stove. I am glancing ...

Use PowerShell to Explore Disk Utilization on Your Computer

Summary: Learn how to use Windows PowerShell to discover what files are using up all the disk space on your computer. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. I do not know about you, but it seems as if there is a disk space-eating gremlin on my computer. One day I have several hundred gigabytes of free disk space on my ...

Use PowerShell to Create an Exchange 2010 Database Report

Summary: Learn how to use Windows PowerShell to create an HTML report of Exchange 2010 databases by using conditional formatting and thresholds. (image)   Hey, Scripting Guy! I need to learn how to produce reports on my Exchange 2010 databases. Is this something that I can do by using Windows PowerShell? —TH (image) Hello TH, ...

Sort Output Before Sending to PowerShell Out-GridView

Summary: Learn how to sort data before you send it to the Windows PowerShell Out-GridView cmdlet. Microsoft Scripting Guy, Ed Wilson here. The weekend has finally arrived, following on the heels of a rather hectic week. I decided to download and install Service Pack 1 for Windows 7 and Windows Server 2008 R2. It installed on the Scripting Wife...