Couple of possibly obvious questions:

Does the logic work elsewhere? What about on the local computer?

Are the security settings on the registry different? Use Regedt32 instead of RegEdit to confirm.

Remote Registry enabled on the target system?

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