Scripting Blog [archived]

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

Use PowerShell to Get the Number of the Week of the Year

Summary: Learn how to use Windows PowerShell to easily get the number of the week of the year. Microsoft Scripting Guy, Ed Wilson, is here. It seems that at times things appear to be too hard. At other times, things that I figure might be too hard, end up being super simple. I guess this is why I was never that good at project estimation tasks...

Scripting Wife Uses PowerShell to Get Days Until NCAA Final Four

Summary: The Scripting Wife learns how to use Windows PowerShell to determine the number of days until the NCAA championship game. Microsoft Scripting Guy, Ed Wilson, here. It has been an extremely exciting week. I finished writing all of the Windows PowerShell 2011 Scripting Games events, and I emailed them to the guest commentators. In ...

Weekend Scripter: Tea Time!

  Microsoft Scripting Guy Ed Wilson here. It has been a great week with some excellent guest bloggers. It is not that I took the week off; rather, I have spent the week working on some special projects I wanted to complete. The great thing about working with guest bloggers is that I get to tap into world-class writers who are experts in ...

Manipulating Dates Returned by Windows Management Instrumentation (WMI)

  (image) Hey, Scripting Guy! I need to understand how to work with dates that I receive from Windows Management Instrumentation (WMI). I remember in VBScript I had to use a function I got from the Scripting Guys that did string manipulation to convert the WMI date to a “normal” date. I guess that is okay, but I had no idea ...