Scripting Blog [archived]

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

Hey, Scripting Guy! Can I Change on the Fly the Way Windows PowerShell Functions Work?

(image)   (image) Hey, Scripting Guy! I have started using functions in Windows PowerShell to encapsulate complex commands, and it works pretty well. However, I would like to be able to change the way the functions work on the fly. By this I do not mean that I will throw the computer across the room and see how the function works, ...

New! On-demand translation of our blog!

You may have noticed something new about the Hey, Scripting Guy! Blog today (very top of the page): (image)   If you would prefer to read this blog in another language, you can now do that--on demand! Available languages are: Just choose the version of "Translate this page" from the drop-down ...

Hey, Scripting Guy! How Can I Create a Custom Function?

(image)   (image) Hey, Scripting Guy! I am getting tired of typing the long commands used in Windows PowerShell. I know you Scripting Guys seem to show people always typing commands inside the Windows PowerShell console, but I do not think I like to work that way. It is TOO MUCH TYPING. I would love to be able to shorten some of the ...

Hey, Scripting Guy! Tell Me About Aliases in Windows PowerShell

(image)   (image) Hey, Scripting Guy! I have been playing around with Windows PowerShell 2.0 in Windows 7 and I think that I like it. However, it seems to require an awful lot of typing. The double command names, such as Get-Process, are somewhat helpful for remembering things, but it is quite a bit of typing. Yes, it is shorter than...

Hey, Scripting Guy! Can I Start an Event Based on When a Registry Value Is Changed?

(image)   (image) Hey, Scripting Guy! I need to be notified when a particular registry key value gets changed. The registry value is in the HKEY_LOCAL_MACHINE hive. What I am trying to accomplish is this: I am using a script to install software. After the first piece of software is successfully installed, I want to install a ...