Solved

how to List of user in the AD, which Group they belong, their full namein 2000

Posted on 2008-06-09
3
714 Views
Last Modified: 2008-06-11
Sorry I know its basic but I do not know Im in Cisco  . No idea about MS.MS Admin R an away now I am in big trouble cause we planning to upgrade to 2003. I hope that I will get all the support from here to save myself


I would like to do the following thing on windows 2000 Domain controller

1.      List of user in the AD, which Group they belong, their full name
2.      Second I would like to get the list of user who is inactive for 90 days
3.      Third list of user whos password has not been changed for 90 days
4.      List of computer account who did not showed up for authentication for 90 days or unused for 90 days
0
Comment
Question by:faizuuu
  • 3
3 Comments
 
LVL 3

Accepted Solution

by:
gs121 earned 250 total points
ID: 21744745
Avaiable form admin pack
dsquery


List all groups a user (e.g. username) is a memeber of (use -expand to get nested groups. or without for nonnested groups)
dsquery user -samid tsmith | dsget user -memberof -expand


Search for inactive Computer account  (not working until ad is Windows 2003) Inactive is in weeks
dsquery computer -inactive 8 -limit 0

Search for a Computer that has not updated ist password in 60 days (should update every 30 days)
dsquery computer -stalepwd 60 -limit 0

In weeks
dsquery user  -inactive 4
in weeks
dsquery computer  -inactive 4

If you want more utilities try www.joeware.com   adfind, oldcmp  admod etc.


0
 
LVL 3

Expert Comment

by:gs121
ID: 21744758
Note: -limit, means all results, without it it defaults to 100 results
0
 
LVL 3

Expert Comment

by:gs121
ID: 21744795
You asked for a lot of them.  You can use saved queries in ADUC for the 30,60, 90 logon time for users.

in days
dsquery user -stalepwd 60 -limit 0

List all users who ahve not logged in in 18 weeks (need 2003 function level)
dsquery user -name * -inactive 18

Note -limit 0   for all results, otherwise just 100 results.

Make sure you AD enviroment is 2003 functionality or inactiveand last logon will not work.

0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Synchronize a new Active Directory domain with an existing Office 365 tenant
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question