Scripting host is a bit limited, as it uses the root key, subkey and value name in a continuous string format. Any backslashes are regarded as delimiters.

Use WMI or the APIs for this.