In addition to the comments already given, I would recommend familiarizing
yourself with the following modules:

Win32::AdminMisc from PPM repository http://www.roth.net/perl/packages:
-----------------------------------------------------------------------
Created by Dave Roth to add functionality not present in the Win32::NetAdmin
module.  Has nice extras like setting environment variables and setting
schedule jobs.

Win32::Lanman from PPM repository http://jenda.krynicky.cz/perl:
-----------------------------------------------------------------------
By far the most comprehensive NT/2000/XP administration module.  Beware, the
documentation is HUGE.  If you want I can email you a set of Word docs
broken down by category taken from the POD documentation.

Win32::NetAdmin (Comes with ActivePerl):
-----------------------------------------------------------------------
You can replace this module with the first two, but it's a good idea to be
familiar with it because you may have to run a script on a computer that
doesn't have the first two modules installed yet.


-----Original Message-----
From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 8:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Network names and the comments


on Wed, 15 May 2002 13:57:49 GMT, [EMAIL PROTECTED]
(Nikola Janceski) wrote: 

>> I don't know how to explain my problem, but I will try my best.

That's a strange way to start a question, especially when an 
excellent explanation follows :-)

>> What I want:
>>      I want to be able to get the list of computers and the
>>      associated 
>> comment, and store it into a hash for use later.

In the Win32::NetAdmin module there is a function

    GetServers(server, domain, flags, serverRef)

    Gets an array of server names or an hash with the server names
    and the comments as seen in the Network Neighborhood or the 
    server manager. For flags, see SV_TYPE_* constants. 

which does exactly what you want. This module is included with the 
standard ActivePerl <www.activestate.com> distribution.

If Win2K administration is going to be part of your life, you may 
also want to check out Dave Roth's "Win32 Perl Programming: The 
Standard Extensions (Second Edition)" at 

    <http://www.roth.net/books/extensions2/>

-- 
felix


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to