Re: toto.pl fails on Windows XP Tablet Edition

2007-01-09 Thread Matt Hyclak
On Mon, Jan 08, 2007 at 03:27:58PM -0500, Matt Hyclak enlightened us:
 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?
 

It seems that this was a problem with my install point. I had rsynced it
from one server to the other. Using the old install point worked just fine,
so I'm not sure what happened with the transfer - maybe sparse files or
something. Anyway, everything is working properly now, just wanted to put it
on the list for the archives.

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.phpp=sourceforgeCID=DEVDEV
___
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel


toto.pl fails on Windows XP Tablet Edition

2007-01-08 Thread Matt Hyclak
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.

Thanks,
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.phpp=sourceforgeCID=DEVDEV
___
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel