Few Days back, one of my client has requested if we can write a script for him on the details of user, group and computer within his environment. As of that request, I have created a script on which Administrator can have details of user, Group and computers. Like total users, disabled users, enabled users and same with groups and computers. You can download this script from below link. Also, I have attached the output snap of the script. The output of this script can be stored on local disk or can be send using email. 🙂
https://gallery.technet.microsoft.com/Active-Directory-User-59934a5d

Enjoy Scripting 🙂.
About Author
pdhewjau
Prashant Dhewaju is a Microsoft MVP and Microsoft 365 Adoption Consultant with deep expertise in cybersecurity and modern workplace solutions. He advises organizations across Nepal and the broader region on securely adopting Microsoft 365, improving productivity, strengthening security posture, and driving effective change management.
His prior position as a Modern Work Security Specialist at Microsoft saw him providing invaluable guidance to major clients in Bangladesh, Brunei, Cambodia, and Myanmar, assisting them with their foundational security needs.
Awarded the esteemed Microsoft Most Valuable Professional (MVP) accolade in 2017, Prashant is recognized globally among Microsoft peers. Since 2010, he has imparted his expertise as a Microsoft Certified Trainer (MCT), conducting specialized training across Nepal.