I am developing a software in order to get all infromation about a computer. I retrieves you os configuration, software installed, etc. Among the things it should do, it has to retrieve user accounts that are allowed to get to the computer. For that purpose I am using the netapi32 library using specifically netuserenum. I don´t have to retrieve passwords. This function is only giving me accounts of local users, but i do need too to get domain accounts allowed in my machine, as if you were seeing the user accounts from the control panel. I do know that user account are stored locally in the SAM database and i have been making test even with other tools like pwdump2 or pwdump3 but it still givesme the same accounts than netuserenum. ¿Where are stored the domain user accounts allowed in my machine? Cause i can query the domain controller but it gives me all domain user acount trusted in that domain. I just need those that i added in my computer.

I hope someone can help.

Thanks in advanced