[EMAIL PROTECTED] wrote:

> 
> Hi list.  
> 
> Any help appreciated on this: I get the following message:
> 
> Win32::OLE(0.1502) error 0x800401e4: "Invalid syntax"
>     after character 0 in "WinMgmts://ST_WT08978_16" at dbill.pl line 33  
>         eval {. . .} called ad dbill.pl line 30
> 
> when running this code:


>   # Get a connection to the WMI service on the remote machine, if possible.
>   my $wmi = Win32::OLE->GetObject("WinMgmts://$target");

Doesn't seem to like your hostname.  Try this and see if the error
is more precise :

my $wmi = Win32::OLE->GetObject("WinMgmts://$target") or
    die "GetObject: " . Win32::OLE->LastError();

It doesn't see mto like 'ST_WT08978_16' as a host.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to