Showing archive results for November 2009

Nov 11, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

  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, but rather I want to mo...

Scripting Guy!Windows PowerShellgetting started
Nov 10, 2009
Post comments count0
Post likes count0

New! On-demand translation of our blog!

ScriptingGuy1
ScriptingGuy1

You may have noticed something new about the Hey, Scripting Guy! Blog today (very top of the page):   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 list that is i...

Scripting Guy!translation
Nov 10, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

  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 commands, but I do no...

Scripting Guy!Windows PowerShellgetting started
Nov 9, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

  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 writing a VBScript t...

Scripting Guy!Windows PowerShellgetting started
Nov 5, 2009
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

  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 subsequent piece of software....

Scripting Guy!Windows PowerShellscripting techniques