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.
In addition to using a VPN service, as an extra precaution I've been using the blocklist feature of my bittorrent… Read More
command '('gpart', 'create', '-s', 'gpt', '/dev/da8')' returned non-zero exit status 1. If you get this error while trying to create… Read More
I'm dual booting Windows and Linux Mint on my laptop. The grub default is to boot into Linux Mint, however… Read More
When you're a little too careless about virtualizing your domain controllers, cloning, migrating, backing up and restoring, returning from vacation… Read More
I tried to retain the NGINX FastCGI cache and have it persist across system reboots instead of being ephemeral by… Read More
Systemd is new service manager for Linux. It's a replacement for all previous init systems (SysV/SysVinit & Ubuntu's Upstart) and… Read More