Some Power Shell Scripts relating to Active
Directory
These scripts create a file (computers.txt or users.txt) that can be
imported into Excel for analysis and reporting. The fields
(columns) are separated by the "|" character.
You will need to edit the first line in each script to specify the
domain and (optionally) organisational unit you want to retrieve the
information from.
Get the date and time that a computer's password was
last updated and the that someone logged on to it
getComputerLastPwdSet.ps1
Get the date and time that a user's password was last updated and logged
on getUserLastPwdSet.ps1
Get the date and time that a user's password was last updated and logged
on plus the user account's SID getUserSid.ps1
Last Updated 10 April, 2009 |