Scripting Blog [archived]

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

New Feature in PowerShell 5: Compress Files

Summary: Ed Wilson, Microsoft Scripting Guy, talks about the compressing files feature in Windows PowerShell 5.0. Microsoft Scripting Guy, Ed Wilson, is here. This morning, the sun is shining, the air is dead calm, and I am sitting outside under a gigantic old oak tree with my Windows Surface Pro 3 that I upgraded to Windows 10. I am ...

PowerTip: Use PowerShell to Find Virtual Hard Disks

Summary: Use Windows PowerShell to find virtual hard disks on your system. (image)  I notice that my disk space appears to be disappearing at a rapid rate, and I suspect someone is creating            virtual hard disks (VHDs) and forgetting about them. How can I use Windows PowerShell to find all the  ...

Use PowerShell to Explore Old Windows VHDs

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore old Windows VHDs. (image)  Hey, Scripting Guy! It is time for spring clean-up around our datacenter. I am not talking about chasing out dust bunnies, although that is part of it. What I am talking about is trying to determine what can be safely ...

Use PowerShell to Create Archive and Send Email

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to create a .zip archive and email it. (image)  Hey, Scripting Guy! I have a number of files that I would like to archive on a regular basis to a .zip file. I need to email that .zip file as an attachment. I do this every week, and it takes me like nearly 15 ...