in reply to Remote PC info

Okay, there are plenty of modules for dealing with Win32 systems. Looking at win32 and win32api will show you just how many there are!

For your situation, I think that I'd use Win32::TieRegistry to look up that information in the registry of the various networked PCs.

You might want to look through HKEY_LOCAL_MACHINE\enum.

Updated: Oops! What was I thinking? The registry will hold the information on the specific hardware components. Make and Model are in a file called oeminfo.ini. On Win9x systems it is in c:\windows\system. On Win2k, it is in c:\winnt\system32. Config::IniFiles should come to the rescue with reading the info.

Replies are listed 'Best First'.
Re: Re: Remote PC info
by Mr. Muskrat (Canon) on Nov 06, 2002 at 18:17 UTC
    The oeminfo.ini file looks like this:
    [general] Manufacturer = Flybynight Computer Mfg. Model = Rip-U-Off 4000 [support information] Line1 = Support? You want support? Line2 = Don't call us! Line3 = Seriously. Line4 = We mean it!

    So you could use something like this:

    #!perl use strict; use warnings; use Config::IniFiles; my $cfg = new Config::IniFiles(-file => "c:/windows/system/oeminfo.ini +" ); my $make = $cfg->val('general', 'Manufacturer'); my $model = $cfg->val('general', 'Model'); print "Make: $make\n"; print "Model: $model\n";
    And if you have some network shares set up, you can map drives and use those drive letters.

Re: Re: Remote PC info
by joeheb (Initiate) on Nov 06, 2002 at 19:40 UTC
    This is what I was looking for. Thanks. I can just parse this file and utilize what I need. Thanks.