Marten:We probably got a little side-tracked there - sorry 'bout that...
If you still want to get to the root of this problem - maybe we should go back to the basics...
For example, you might want to capture and display the return codes from your failing scripts...
code:
$rs = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyHttp1.1","0","REG_DWORD")
?"error: @serror (@error)"
If the profile if not there - I would imagine that any write to it would fail ???
As well, you should probably use "0" instead of "0x00000000" in your writevalue() - kix doesn't really do the kex conversion (it just seems to work because it defaults to zero, for example 0x00000020 doesn't work).
Hope to be of assistance...
Shawn.
[This message has been edited by Shawn (edited 27 January 2001).]