Solved

Last Authentication

Posted on 2007-11-28
3
252 Views
Last Modified: 2010-03-17
I need a script to be able to identify the last time a machine has been authenticated in Active Directory, I am trying to find dormant machines and clean up active directory; I have full rights over just one container of Active Directory, so I am limited in my capabilities, I have however been able to get a script to enable me to find out the last time a user logged on.
0
Comment
Question by:truotsuko
[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
3 Comments
 
LVL 13

Accepted Solution

by:
rhinoceros earned 250 total points
ID: 20371926
Dandelions, VCR Clocks, and Last Logon Times: These are a Few of Our Least Favorite Things
http://www.microsoft.com/technet/scriptcenter/topics/win2003/lastlogon.mspx

Or
Get a simple one in logon script, it will write down the date, time and the login name to a text file in the server. (But make sure you append it, not overwrite the text file)
echo %computername% %username% %date% %time% >> \\servername\log\log.txt
0
 
LVL 70

Assisted Solution

by:KCTS
KCTS earned 250 total points
ID: 20372044
Try the OldCmp tool http://www.joeware.net/freetools/tools/oldcmp/index.htm from Joeware - it can be used to find/disable/delete unused accounts.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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