that’s not a typo. export only active active directory users (not disabled) into a csv file with csvde, the following should suite your needs:
# collect internal users for your audit purposes csvde -d "ou=users,ou=internal,dc=domainname,dc=suffix" -r "(&(objectcategory=person)(!useraccountcontrol=66050)(!useraccountcontrol=514))" -l samaccountname,name,description,useraccountcontrol,logonhours -f "internalusers.csv"
you can easily put this into task scheduler for automated reporting at whatever interval you like. i’m currently running this manually every 1st of the month but i will definitely be looking into automating and emailing myself, or directly to the person who needs the report. if anyone knows how to get rid of the dn field in the output, please let me know.