Scripting Blog [archived]

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

Dandelions, VCR Clocks, and Last Logon Times: These Are a Few of Our Least Favorite Things

  (Note: This blog post appeared originally as an article on the old Microsoft Script Center. It was originally published in December 2005. We are resurrecting it here by popular demand.) Sometimes the things that should be so easy turn out to be incredibly difficult. For example, have you ever tried to get rid of dandelions? (One of the ...

Hey, Scripting Guy! Can You Translate This VBScript to Windows PowerShell?

 (image) Hey Scripting Guy! I am wondering about something. I was looking on the Script Center Script Gallery, and I came across a pretty cool script that lists items that are in the user's profile. It is in VBScript. Can you translate it to Windows PowerShell for me?-- AW(image) Hello AW, Microsoft Scripting Guy Ed Wilson here. It is ...

Hey, Scripting Guy! Can I List the Program Identifiers That Are on My Computer?

 (image) Hey, Scripting Guy! I am looking for a script that will list program identifiers on my computer. Have one of those?-- CG(image) Hello CG, Microsoft Scripting Guy Ed Wilson here. It is interesting you ask for a script that will list program identifiers on your computer. Program identifiers (PIDs) are the secret word combinations ...

Scripting: Your First Steps

  A long time ago, even before any of the Scripting Guys were born, people used to walk from one place to another. Not for exercise or recreation, but because they had to get somewhere. Those who were fortunate enough to have other forms of transportation could move along a little more quickly on their horses, camels, elephants, or ...

Hey, Scripting Guy! How Can I Perform More Than One Action with the Win32_Printer WMI Class?

(image) Hey, Scripting Guy! The Win32_Printer WMI class has several methods that are listed in it. But I am not sure how to best use these methods from inside a Windows PowerShell script. I do not want to create four different scripts to send a test page, clean out print jobs, and to cycle the print queue. Do you have an example of how I ...