Hi, I've maid a program with Delphi 2005 to read out every user of a domain. Now I want to read out the SID. I lookup the SID of the user with the function LookupAccountName(). This work fine, but there is a problem. If there is an local user which have the same name as an domain user (like Administrator) I receive the SID of the local user. I though I can find a solution, when call the function LookupAccountName() with the domain controller name as parameter. But how do I get the domain-controller name? thank,