Export-LastLogonTime
1.2
This script takes the OU common name specified in the OU parameter and retrieves its users' account names and last logon times. Then it exports a .csv file to the destination given in the Destination parameter. This script will search the entire domain for the OU name specified. If you have OUs with the same names this script will most likely fail. If the destinat
This script takes the OU common name specified in the OU parameter and retrieves its users' account names and last logon times. Then it exports a .csv file to the destination given in the Destination parameter. This script will search the entire domain for the OU name specified. If you have OUs with the same names this script will most likely fail. If the destination path contains spaces it must be wrapped in quotation marks, and the file name specified must end in .csv.
Due to the common problem of the LastLogon not replicating between domain controllers, this script will search for domain controllers and compare the LastLogon from each one to find the most recent time a user logged in.
Show more
Due to the common problem of the LastLogon not replicating between domain controllers, this script will search for domain controllers and compare the LastLogon from each one to find the most recent time a user logged in.
Installation Options
Owners
Copyright
2016 Chris Carter
Package Details
Author(s)
- Chris Carter
Tags
Functions
Dependencies
This script has no dependencies.
Release Notes
The script was changed to remove the error message boxes, because I couldn't remember why it would use them in the first place. Also, the script has been changed so that it now retrieves the LastLogon property from all domain controllers to find the most recent login time.
FileList
- Export-LastLogonTime.nuspec
- Export-LastLogonTime.ps1