Or even better - isn't there a way using remote wmi (or remote shell/WSHPipe) to capture the remote shell output into a string, and bypass the need for a intermediate regpoke or file ?