in reply to Re^2: (OT) executing a command on a remote Windows XP machine
in thread (OT) executing a command on a remote Windows XP machine

Which part of 'Access Denied' is confusing you ;-) You need to use a valid username and password.

$user="DOM\username" # bound to fail $user="DOM\\username" # OK $user='DOM\username' # OK as well

Once you fix that tt should work as the SWbemLocator you need running remotely provided that error. You do need valid credentials though. This works fine for me:

use Win32::KillProcess ':all'; my $server = "Toshiba"; my $user = "WORKGROUP\\Administrator"; my $pass = "password"; my $c = connectServer( $server, $user, $pass ); showRunningProcess($c);

cheers

tachyon

Replies are listed 'Best First'.
Re^4: (OT) executing a command on a remote Windows XP machine
by blackadder (Hermit) on Oct 08, 2004 at 11:20 UTC
    Thanks *Embarrassed*
    Blackadder