Solved

active directory users

Posted on 2014-11-20
2
106 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
[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
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 96

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2008 set profile 9 62
Extending VM Disk to be larger than 2 TB ? 11 185
ADMFILES.INI 7 59
How ldap located a Domain controller? 22 78
A procedure for exporting installed hotfix details of remote computers using powershell
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

738 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