in reply to How to fetch groups and users on a win2k system

The code to list Users and Groups on a W2k

#! perl.exe use strict; use warnings; use Win32::AdminMisc; my (@users, @groups); print "List of USERS\n"; Win32::AdminMisc::GetUsers("","",\@users); foreach my $usr(@users) { print "$usr\n"; } print "\nList of GROUPS\n"; Win32::AdminMisc::GetGroups("",GROUP_TYPE_ALL,\@groups); foreach my $grp(@groups) { print "$grp\n"; }

-----
Of all the things I've lost in my life, its my mind I miss the most.

Replies are listed 'Best First'.
Re: Re: How to fetch groups and users on a win2k system
by Anonymous Monk on Oct 13, 2002 at 05:09 UTC
    Hello AcidHawk, The code is really helpful. but again i have a problem in getting the latest Adminmisc package (2000... ver). can u help . mau be u can mail me this package at anandtirtha@samyog.com it would be very helpful. Thanks and Regards, Ananda