Take note of Richard's use of WriteValue, particularly when using REG_DWORD. A DWORD is a double-word number, and you were passing a string with many leading zeros. While it would not cause a script error, it's possible that it would not write the correct value to the registry.

Always, (no - ALWAYS!!!) run your scripts from a command line during testing, NEVER from the GUI/Explorer/Drag-n-Drop as you will miss all of the useful error and diag messages.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D