[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

List Users & Computers in domains

Posted on 2010-01-03
2
Medium Priority
?
266 Views
Last Modified: 2012-05-08
Dear All,

I have 6 domains (Parent with 5 child). I need to do the following:
1- List (Just to Know) all users which they are not log-in since 3 months
2- List (Just to Know) all computers which they are not used to log-in since 3 months
3- List all users and computers which they disabled.

Thanks
0
Comment
Question by:Arabsoft-ACS
2 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 2000 total points
ID: 26166149
Is your domain at windows 2003 domain functional level? For my answer i'll assume yes
For old users and computers I'd suggest a tool called old computer by MVP Joe Richards
You can download it here http://www.joeware.net/freetools/tools/oldcmp/index.htm
1- List (Just to Know) all users which they are not log-in since 3 months
oldcmp -report -users -llts
2- List (Just to Know) all computers which they are not used to log-in since 3 months
oldcmp -report
Old comptuer will generate a nice html file for you
3- List all users and computers which they disabled.
For this one I'd go back to adfind http://www.joeware.net/freetools/tools/adfind/index.htm
List disabed users
adfind -default -bit -f "&(objectcategory=person)(objectclass=user)(useraccountcontrol:AND:=2)" samaccountname
or use one of Joe's shortcuts   adfind -sc users_disabled samaccountname
for disabled computers
adfind -default -bit -f "&(objectcategory=computer)(useraccountcontrol:AND:=2)" samaccountname
Thanks
Mike
0
 

Author Comment

by:Arabsoft-ACS
ID: 26169100
Thanks mkline71,

I try the OldCMP and it's work.

How i can apply it in another domain remotlly?

Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
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 …
Suggested Courses

834 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