List All User Accounts on a Windows Domain in a specified group (Domain Admins) via Command Line RRS feed

  • Question

  • I would like to find\create a command to list all user accounts with all details on a Windows Domain Controller (Server 2012 R2) from specified group. Using "net users" would be perfect, but i have no idea how to do output of this command for all users in one action (f.e. i need to write this command for each user separately if i want to get to know details). If there is no way to use "Net users" then "WMIC USERACCOUNT" would be nice too. But i also need to get information from specified group (Enterprise Admins, Domain Admins etc.)

    I know that i can use PowerShell but i'm trying to find some solution for CMD. Thanks!

    Sunday, November 4, 2018 8:09 AM

All replies