Mark M Manning

A site for information involving myself and my career.

Find Last Logon in Active Directory [VBScript]

Monday, December 10, 2007

I found this script from the site www.rlmueller.net which has a ton of other handy scripts that are free anyone to hack as long as you don't blame him for screwing something up.

This script searches through each domain controller of whichever domain your computer is a member of and outputs the "lastlogon" attribute of the account. Very useful in finding old accounts that are unused. Just be careful because some service accounts that you may have created on the domain will not show a lastlogon event at all

Save this text as a .vbs file and run it something like this:

External Link:
http://www.rlmueller.net/Last Logon.htm - the site which I found this script and where you should go if you like it.

Labels: , ,