Impacket’s GetADUsers.py will attempt to gather data about the domain’s users and their corresponding email addresses.
Command Reference:
Target IP: 10.10.10.1
Domain: test.local
Username: test
Password: Welkom01!
python3 GetADUsers.py -all test.local/test:Welkom01! -dc-ip 10.10.10.1