Solved

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

Posted on 2008-06-09
3
713 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

863 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now