Oh sorry, my bad.

It should be like this:
 Code:
$rc = WriteValue("Registry key", "Registry value", "Data for the value", "Data Type")


HKCU or HKEY_CURRENT_USER should be ok. I’m not sure when the short names were introduced but if you use a recent version it should be ok.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.