Long time no post.
Have an issue where I need to write to the registry on a WinNT machine. I have the following code to create the key:
$ReturnCode = AddKey("HKEY_CURRENT_USER\software\policies\Microsoft\office\9.0\outlook\webview")
This works fine and the key is created.

Writing the value to the key poses more of a problem. I have tried the following:
LoadKey("HKEY_CURRENT_USER\software\policies\Microsoft\office\9.0\outlook\webview", "c:\temp\intranet.reg")
AND
WriteValue("HKEY_CURRENT_USER\software\policies\Microsoft\office\9.0\outlook\webview",
"URL", "X:\Path\folder\file.html" "REG_SZ")But both of these bomb out.

I cannot see where they are going wrong.

Any ideas???

Thanks