Showing results for February 2010 - Scripting Blog [archived]

Feb 28, 2010
0
0

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

ScriptingGuy1
ScriptingGuy1

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. At first, I ...

Scripting Guy!Windows PowerShellscripting techniques
Feb 27, 2010
0
0

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

ScriptingGuy1
ScriptingGuy1

 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 into the ...

Scripting Guy!Windows PowerShellscripting techniques
Feb 25, 2010
0
0

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

ScriptingGuy1
ScriptingGuy1

   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   Hello NB, Microsoft ...

Scripting Guy!Windows PowerShellscripting techniques
Feb 24, 2010
0
0

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

ScriptingGuy1
ScriptingGuy1

  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 Hello TW, Microsoft Scripting Guy Ed Wilson here. Today has been a great day, and I ...

Scripting Guy!Windows PowerShellscripting techniques
Feb 23, 2010
0
0

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

ScriptingGuy1
ScriptingGuy1

   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 fail in midstream?-- ...

Scripting Guy!Windows PowerShellscripting techniques