Scripting Blog [archived]

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

Changes to TechNet Library Scripting Node

I wanted to make you aware of some changes we’re making to the Scripting node in the Microsoft TechNet Library.  Summary The Scripting node in the TechNet Library has been renamed Scripting with Windows PowerShell, and will contain Windows PowerShell language documentation and cmdlet help for multiple Microsoft products. Details ...

Automating DiskPart with Windows PowerShell: Part 3

Summary: Honorary Scripting Guy, Sean Kearney, continues his series about using Windows PowerShell to build scripts to automate DiskPart. (image)  Hey, Scripting Guy! I saw yesterday how you could pull information from DISKPART with Windows PowerShell. I noticed the size of the disks was shown in GB or MB. Is there any way to convert that...

PowerTip: Show attached USB Drives with PowerShell

Summary: Use Windows PowerShell to show attached USB drives. (image)  Is there an easy way with Windows PowerShell to show all drives that are connected via USB? (image) Use Get-WMIObject and query win32_diskdrive: GET-WMIOBJECT win32_diskdrive | Where { $_.InterfaceType –eq ‘USB’ } Or... Write this as a query and pass ...