MightyR1,
Correct me if I'm wrong but at first blush it looks like you are doing all those WriteValue() statements to the local commputer running the script and not the remote computer you push the DLL to.

Wouldn't you need to do?

$RC=WriteValue("\\"+$computer+"\HKLM\...")
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.