Here is some info that was discussed earlier this month, maybe it applies to
your situation?
> Hi Stephen,
> Thank you for you report.
> After I have done a deeper research, the behavior will occur only if
> there is a same local account with the domain account. i.e. when you
> have a domain account domain\user1 and a local account user1. When you
> logon to the domain with the domain account domain\user1, the problem
> will persists.
> I have reported the problem to our product team, but I can not
> guarantee
if
> or when it will be fixed.
> Now you can follow the Jim's workaround
> or
> Environment.ExpandEnvironmentVariables("%USERDOMAIN%")
> If you have concern on this issue,please post here.
> Regards,
> Peter Huang
> Microsoft Online Partner Support
> Get Secure! www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no
> rights.
> I'm getting the user's name instead of the domain name
> when I make the following call on a Windows 2000
[quoted text clipped - 6 lines]
>
> Why?