Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 658
  • Last Modified:

Printing Active Directory

Is there a way to print out the groups and/or users from active directory?  Is there a file with a list maybe?
0
wordtool
Asked:
wordtool
2 Solutions
 
night_monkeyCommented:
right click over the container in ad users and computers that contains the user accounts/groups that you want to print. choose export or export to file (I can't remember which). then save the exported file as a text (.txt) document. you can open it with notepad and print it out.
0
 
wordtoolAuthor Commented:
This is good but I should have been more clear in what I was trying to accomplish.  What I need is to be able to print a list of groups and the detail of who is in them. For example:

administrators:  john, joe, james
users:           sam, sarah
0
 
wordtoolAuthor Commented:
Or it could be the other way around.  Display users but add the column "member of".
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
wordtoolAuthor Commented:
Or it could be the other way around.  Display users but add the column "member of".
0
 
wordtoolAuthor Commented:
Or it could be the other way around.  Display users but add the column "member of".
0
 
night_monkeyCommented:
the windows 2000 server resource kit has a command line tool named global.exe that will do want you want to do here. unfortunately, there are no built-in tools for this task (that i'm aware of).

take care.
0
 
CleanupPingCommented:
wordtool:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
Pete LongConsultantCommented:
Copy all AD users to a text file

From http://www.experts-exchange.com/Operating_Systems/Q_20698009.html#9073544

Being a scripting nut, I tend to approach these kind of problems from a scripting standpoint.

copy and paste the code below into "Mattisastud.vbs" and then run it.

Then open the GroupMembership.txt file and it should have everything you need.  
If you want to view the machine accounts also, uncomment the commmented line...

-=-=-=-=-=-=-=-=-=-=-=-=-=-  Code Below  -=-=-=-=-=-=-=-=-=-=-=-=-=-  

Dim myNetwork
Set myNetwork = CreateObject("Wscript.Network")

strDomain = myNetwork.UserDomain

Set objDomain = getobject("WinNT://" & strDomain) 'Grab the domain object
objDomain.filter = Array("Group") 'Filter for just computers.

Dim myFSO
Set myFSO = CreateObject("Scripting.FileSystemObject")
Set myFile = myFSO.CreateTextFile("GroupMembership.txt",1)

myOutput = ""

For each objGroup in objDomain
    myOutput = myOutput & objGroup.Name & vbcrlf
   For Each objUser in objGroup.Members
'          myOutput = myOutput & vbtab & objUser.Name & vbcrlf
         If right(objUser.name,1) <> "$" Then
              myOutput = myOutput & vbtab & objUser.Name & vbcrlf
         End if
   Next
Next

WScript.Echo myOutput
myfile.writeline myOutput

-=-=-=-=-=-=-=-=-=-=-=-=-=-  End Code  -=-=-=-=-=-=-=-=-=-=-=-=-=-  

CREDIT To :MAT

*****Other Links*****

How can I create a file containing all the user names in my domain?
http://www.jsiinc.com/subl/tip5500/rh5531.htm

How can I produce a list of the user logon names in my domain?
http://www.jsiinc.com/subi/tip4400/rh4490.htm

Run a Group/User or User/Group report.
http://www.jsiinc.com/SUBB/tip0700/rh0748.htm
0
 
juliancrawfordCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: night_monkey {http:#8105346} & PeteLong {http:#9929370}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Julian Crawford
EE Cleanup Volunteer
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now