I have a Windows 2000 domain and it's loaded with lots of users placed in different OUs and with different expiry date.
I am looking for a VB Script which will extract following details of all the users whose AD account is set with an expiry date:
SAM Account Name / Login ID
Account Expiry Date
Please note that I would want the output to be in the order specified above and if possible then would want it to be extracted into Excel sheet.
Could some expert help me with a script to extract the above details from Active Directory.
I would appreciate if i am provided with the script instead of links to it as Im not so good at programming.