This PowerShell script will list the User accounts on a remote machine. Change Machine_Name with the Domain controller, SMS server or SQL server you want to enumerate.
PowerShell Script:
Gwmi Win32_UserAccount -Comp Machine_Name |
Sort-Object Name |
Format-Table FullName, Name, Domain
No Comments