There are a lot of scripts that entail user information, file information and other useful scripts at Microsoft Technet. In the Script Repository, you’ll most likely find what you are looking for. If not, you can piece them together. I saw one to export all user properties from Active Directory to an Excel spreadsheet. Providing an actual script to do exactly what you wanted to do would probably entail some time and work.
REGISTER or login: