In .net, I can create a NTAccount using domain and username, and get it\'s SID.
NTAccount
But I cannot convert the SID back to NTAccount using translate function.
SecurityIdentifier.Translate() method works only on domain accounts so perhaps your computer not attached to domain. To resolve local SIDs into account name you can use Win32 API function LookupAccountSid() look here for example.