What method are you using to access the remote machine? You'll need something like telnet or ssh or rsh to execute remote commands.. look into Net::Telnet or Net::SSH and possibly Expect.
Well, that's how you're talking to the registry.. how are you actually connecting to the remote system? Presumably you have some sort of login account on the remote server?