Displaying expiry dates of users in Active Directory
Hi guys,
I am trying to display a list of all AD users but with their expiry dates as well. I tried just making a list of all users and adding a column to display the expiry date but this is not an option. I was wondering if anyone can help me out?
All i want to do is just put the report in to a delimited text document.
Cheers
Re: Displaying expiry dates of users in Active Directory
Re: Displaying expiry dates of users in Active Directory
You can dump this information to a text file using the command below.
Either run it on a 2003 server or on an XP machine with the adminpak installed.
Quote:
dsquery user -limit 0 | dsget user -samid -acctexpires > list.txt
Re: Displaying expiry dates of users in Active Directory
Thats great, worked a treat.
Thanks for that