[318] in winnt

home help back first fref pref prev next nref lref last post

Re: Users and Groups

daemon@ATHENA.MIT.EDU (Rob Smyser)
Wed Mar 3 14:39:40 1999

Date: Wed, 03 Mar 1999 14:34:57 -0500
To: Michele Brodeur <mbrodeur@mit.edu>, ntpartners@mit.edu
From: Rob Smyser <smyser@MIT.EDU>
In-Reply-To: <4.1.19990303104513.00a5b210@po7.mit.edu>

Michele,
   the command line version of the NET command is likely to be useful, if
not perfect for what you need.

  For instance,
c:\>  net user /domain	displays the list of all users in the domain
c:\>  net group /domain  	displays the list of all groups.
c:\>  net group groupname	displays the members in groupname

I don't see a way to do a quick hierarchical list of all the members in all
the groups.  But I'll keep looking...  Actually, if you know you just have
a few groups (as you probably should :-) ) you could write a batch file
that did something like:

  for %%i in (group1 group2 group3) do net group %%i /domain) >> file

I think you can still do the for statement in the NT command interpreter....
(Actually I just tested it and it does useful work.)  

Rob



At 10:46 AM 3/3/99 -0500, Michele Brodeur wrote:
>Does anyone know of a way to generate a list of users and groups from NT?
>Basically, what I need is a list of users and what groups they belong to.
>I would also like a list of groups with members.  Thanks.
>

home help back first fref pref prev next nref lref last post