Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell to Document Exchange Server Prior to Upgrade

Summary: Use Windows PowerShell to document your Exchange Server 2003 environment before you upgrade to a newer version of Exchange Server. Hey, Scripting Guy! How can I use Windows PowerShell to help me prepare for a Microsoft Exchange Server migration? —BN Hello BN, Microsoft Scripting Guy, Ed Wilson, here. Today we will take a ...

Use PowerShell to Determine Fragmentation of Your Drive

Summary: Learn how to use Windows PowerShell to determine the amount of fragmentation of your hard disk drives.   Hey, Scripting Guy! One of the things that annoys me is that the “new” defragmenter program in Windows 7 does not return any information. I guess from a user standpoint, it is OK—and it runs as a service, ...

Change Drive Letters and Labels via a Simple PowerShell Command

Summary: Microsoft Scripting Guy, Ed Wilson, shows you how to change drive letters and labels with a simple Windows PowerShell command. Hey, Scripting Guy! First of all, I want to thank you for being cool and for all the neat things you do with the Windows PowerShell community. Second of all, I was reading your blog last week where you were ...

Get All Methods and Writable Properties from All WMI Classes

Summary: Use Windows PowerShell to gather all implemented methods and writable properties from all WMI namespaces. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. It is quiet around here on the weekends. At times, it is extremely quiet. I decided to use the time to make some serious changes to my WMI method and property discovery ...

Explore WMI Methods and Properties via PowerShell Script

Summary: Microsoft Scripting Guy, Ed Wilson, illustrates how to explore WMI methods and writable properties from a Windows PowerShell script. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. One of the things I like about Windows PowerShell is the ease in which I can modify things, experiment with things, play with things, and ...