On Mon, Jan 08, 2007 at 02:36:23PM -0500, Matt Hyclak enlightened us:
> I'm getting a strange problem with my tablet PCs and unattended. The same
> boot disk and install point work just fine with WinXP Pro, but when I try to
> run it on tablet edition, I get the following error:
>
> Can't call method "InstancesOf" on an undefined value at Z:\bin\todo.pl
> line 234.
>
> I'm running the latest CVS. The line that it's failing on is:
>
> # Get the SWbemObjectSet of Win32_OperatingSystem instances.
> my $os_instances = $wmi->InstancesOf ('Win32_OperatingSystem');
>
> where $wmi is set by calling
>
> # Get a handle to the SWbemServices object for this machine.
> my $wmi = Win32::OLE->GetObject ('WinMgmts:');
>
> which is not returning a handle as the comment suggests. Is anyone more
> competent with the Win32 perl modules that they can help me diagnose what's
> happening?
>
> ActivePerl 5.8.8 build 819 is installed.
>
Just to follow up a bit, I've pared everything down to the failing call. My
test.pl contains:
use Win32::OLE;
$wmi = Win32::OLE->GetObject('WinMgmts:');
print Win32::OLE->LastError();
and it outputs:
Win32::OLE(0.1707) error 0x800401e4: "Invalid syntax"
after character 0 in "WinMgmts:"
whereas on a WinXP Pro system, the same script simply outputs
0
Any thoughts?
Matt
--
Matt Hyclak
Department of Mathematics
Department of Social Work
Ohio University
(740) 593-1263
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel