Solved

active directory users

Posted on 2014-11-20
2
102 Views
Last Modified: 2014-11-21
Windows Server 2008 R2.  How do you reconcile or run a program on the server to show which users have not logged into the network or had a response from a DHCP server in the past year?  Not sure if I'm explaining that right.  One time I had someone do this for me on our server and it showed the users that have not logged into the network for a year.  They ended up having a red x beside the name.  Want to clean up active directory.
0
Comment
Question by:mkramer777
2 Comments
 
LVL 10

Accepted Solution

by:
Maclean earned 500 total points
ID: 40456317
Not 100% sure what you want out of this besides seeing when perhaps a user last logged on over 1 year, or when a computer was last on the network.

I recommend using a free utility from joeware for these two, which runs from a cmd prompt. It prints out a report to html or csv for these types of info.

For old computers:

http://www.joeware.net/freetools/tools/oldcmp/

For old users:

http://www.joeware.net/freetools/tools/getuserinfo/index.htm

There might be alteratives in  gui, but personally I enjoyed the toolsets provided by JoeWare
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 40456373
You can use a powershell script for the users - see this TechNet entry:
https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771

As for finding stale computers (DHCP, I don't think, is a good method).
Here are a couple of scripts that can get you that information.
http://pipe2text.com/?page_id=121
https://gallery.technet.microsoft.com/scriptcenter/Get-Inactive-Computer-in-54feafde
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

Suggested Solutions

Title # Comments Views Activity
How to prioritize LOGONSERVER for clients? 1 40
Robocopy Skipped Directory 12 42
vmdk greater than 2TB 2 28
adding more drive space to the server 5 32
Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

867 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