Does anyone knows how to connect to a remote computer and use a specific username+password to change the registry (without mapping a share)? I want to del a registry key.

If I use the same username on my computer and my username is admin om the remote computer I delete the key (test) with:
DELTREE("\\remotecomputername\hklm\software\test")

But if I'm not admin on the remote computer i have to do this with any "connect as"... how?
If figured out one way to do it but i hope to find a simplier way:
USE Z: "\\remotecomputername\c$" /user:administrator /password:password
DELTREE("\\remotecomputername\hklm\software\test")
USE Z: /DELETE


Anyone?