Within the context of a logon script, they are both considered local. When you logon to the TS, the script runs on the TS in the security context of the current user so HKCU will be the user's local reg hive on the TS.

What you should do is to setup an INI file that you can use to pass the value from the local logon at the client to the local logon at the TS.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.