I need to acquire following information from the Windows 2008 Active Directory Domain Controller Server.
a) User name
b) User ID / O.U
c) User Status (Disabled/Enabled)
d) User Creation Date
e) User Deletion Date
f) User Last Login Date
I can get the user list by following command
dsquery user -limit 0 | dsget user -dn -disabled -display -email -dept -title
How can I get other information as well in single window or text file?