my psexec lines doing stuff remotely on any Windows platform we have (including the latest), look like this recently:

 Code:
            $result = WshPipe($psexec + $s + ' -u ' + $rA + ' -p ' + $rP + ' -h -s -accepteula ' + $c[$e], 1)
            $result = join($result, @crlf)

where WshPipe is a stripped version of the originals to be found in the UDF Library section...
$psexec represents the path to the executable in my folder structure
$s is of course the remote system name or IP address
$rA is the account that has elevated rights on the remote (normally I use different ones encrypted locally to try from least privileged to most)
$rP will be the corresponding password (a bit unsafe to do so I guess)
$c[$e] is, in this case I copied from, the current command to execute remotely in my loop..
, 1) is to let WshPipe not echoing.. who needs consoles to pop up anyway \:\)

In retrospective.. psexec is a tool I love. Thanks Mark R. \:D

_________________________