Scripting Blog [archived]

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

Hey, Scripting Guy! Weekend Scripter: Creating a GUI for a Windows PowerShell Script

(image) Microsoft Scripting Guy Ed Wilson here. When I showed the Scripting Wife the Get-FuelCostFunction.ps1 script from yesterday, she was less than enthused. She did not like the idea of opening up either the Windows PowerShell ISE or the Windows PowerShell Command Prompt window. She wanted a graphical interface and an icon she could click...

Hey, Scripting Guy! Weekend Scripter: A Function to Calculate Fuel Cost

(image)  Microsoft Scripting Guy Ed Wilson here. The cool thing about scripting on the weekend is you can take two hours for breakfast, hang out with friends on Facebook and Twitter, and not feel bad about it all. The Scripting Wife headed out with her friend to a rodeo and left me in the kitchen unattended. Bad mistake on her part! I got...

Hey, Scripting Guy! Can I Use Transactions to Write WMI Information to the Registry?

(image)    (image) Hey, Scripting Guy! I need to be able to create several registry keys, but only if the computer meets certain hardware requirements. I was thinking I could query a bunch of WMI classes and then use a transaction, but I am not sure which hardware WMI classes I should use. Do you have any ideas? -- NB   (image...

Hey, Scripting Guy! How Can I Use Transactions to Write to the Registry?

(image)   (image) Hey, Scripting Guy! I am interested in using transactions when writing to the registry, but if something does not work, I want the entire transaction to fail. It does not seem that this actually works in Windows PowerShell. Am I missing something?-- TW (image) Hello TW, Microsoft Scripting Guy Ed Wilson here. Today ...

Hey, Scripting Guy! How Can I Change the Registry with Windows PowerShell 2.0 Transactions?

(image)    (image) Hey, Scripting Guy! I have been using Windows PowerShell to manipulate the registry since Windows PowerShell 1.0 came out. With Windows PowerShell 2.0, I can now edit the registry on a remote computer. How can I use transactions with the registry provider so that I can ensure that my changes to the registry do not ...