Solved

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

Posted on 2008-06-09
3
717 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In-place Upgrading Dirsync to Azure AD Connect
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

735 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