mmm...
well. if I would have known that you have not blocked the output I would have posted my code before and then would have been different case...
I quess.

anyway, I got "-HKEY_CURRENT_USER" key in "HKEY_CURRENT_USER" when tried one line from your script.
_________________________
!

download KiXnet