#113852 - 2004-02-12 01:44 AM
Re: Local Admin Members
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Yes, good code for 2000/XP there Lonk 
However for NT 4 which was the original request it does not appear to work. I tested it on NT 4 SP6a workstation and NT 4 Server SP6a and neither one returned info.
So unless Lonk or someone else can figure out a pure KiXtart method, I'll suggest this.
NetLocalGroupEnum NetUserGetLocalGroups NetUserEnum
Using Win32 C,C++,VB,Perl,Python,etc... you could use
NetLocalGroupGetMembers
Otherwise you may have to locate a compiled .EXE or use WSH/ADSI to really accomplish this task.
Here is a tool that I think should do what you're looking to do, but I've not tested it on NT 4 http://www.joeware.net/win32/zips/Lg.zip
He also has a lot of other nice utilities for Admin work.
http://www.joeware.net/
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|