Solved

active directory users

Posted on 2014-11-20
2
105 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 11

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
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 show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

679 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