Win32::AdminMisc, from http://www.roth.net/perl/packages is
your friend.  It has the GetGroups function, in your case you'd
do something like this:

GetGroups("YourDomain",GROUP_TYPE_GLOBAL,\%groups);

The group hash will have the group names, type, comment, and flags.

-Peter

> -----Original Message-----
> From: Sola, Nicolas R [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 9:40 AM
> To: '[EMAIL PROTECTED]'
> Subject: Win32::NetAdmin
> Importance: High
> 
> 
> > I'm an NT Admin in desperate need for automating some of my process.
> > After evaluating my options, I choose Perl as my tool for scripting.
> > Recently I took a 
> > class, so that makes me a beginner.  Unfortunately I have a 
> task that
> > exceed my expertise.  I need to get Global Groups names and 
> the comment
> > field from our 
> > PDC.  I think that the Win32::NetAdmin module can 
> accomplish this.  Could
> > someone point me into how to accomplish this?
> > 
> > Your assistance will be greatly appreciated,
> > 
> > Nick Sola
> > The Boeing Company
> > International Space Station
> > NT Systems Administrator
> > [EMAIL PROTECTED]
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
> 
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to