Scripting Blog [archived]

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

Inventory Drive Types by Using PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to detect drive types. (image)  Hey, Scripting Guy! We have a number of workstations in our network. Many of the users bring USB keys from home to transfer their files. Others have large external USB drives attached to their machines, and others have ...

Use PowerShell to Initialize Raw Disks and to Partition and Format Volumes

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to initialize raw disks and to partition and format volumes. Microsoft Scripting Guy, Ed Wilson, is here. In yesterday’s post, Use PowerShell to Add VHDs and Configure New Virtual Machines, I was able to create and add new VHDs to previously existing ...

Use PowerShell to Find the History of USB Flash Drive Usage

Summary: Microsoft premier field engineer, Jason Walker, shows how to use Windows PowerShell to get a history of USB drive usage. Microsoft Scripting Guy, Ed Wilson, is here. I was talking to Jason Walker at the Charlotte Windows PowerShell User Group the other day. I asked him what cool things he was doing with Windows PowerShell, and he ...

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. (image)   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 ...

A PowerShell Carol in which Ebenezer Script Learns WMI

   Summary: A Windows PowerShell Carol in which Ebenezer Script learns how easy it to use WMI to check disk space usage.   (image) Hey, Scripting Guy! I am wondering if Ebenezer Script will learn how easy it is to work with WMI from inside Windows PowerShell. -- CS   (image) Hello CS, Microsoft Scripting Guy Ed Wilson here...