Hi All,

We're getting a situation where occasionally our queries to MachineName and
DomainName are both returning the domain. We're using the following calls:

System.Environment.MachineName

System.Environment.UserDomainName

The application deals with Active Directory, so we are assuming that our
users are system admins who are logged into domains, not workgroups. Is
there a bug in the framework, or am I just a net-tard?

Any help, much appreciated.



Chris

Re: MachineName = DomainName ??? by Nicole

Nicole
Thu Nov 04 09:48:38 CST 2004

Chris,

Even on a machine that is a member of a domain, a user can log in under an
account defined on the local machine, as opposed to the domain. In such
cases, the local machine name will be returned from
System.Environment.UserDomainName.

HTH,
Nicole


"Chris Roth" <visioguy@reallyreallywarmmail.com> wrote in message
news:%23LpSgLowEHA.3824@TK2MSFTNGP15.phx.gbl...
> Hi All,
>
> We're getting a situation where occasionally our queries to MachineName
> and DomainName are both returning the domain. We're using the following
> calls:
>
> System.Environment.MachineName
>
> System.Environment.UserDomainName
>
> The application deals with Active Directory, so we are assuming that our
> users are system admins who are logged into domains, not workgroups. Is
> there a bug in the framework, or am I just a net-tard?
>
> Any help, much appreciated.
>
>
>
> Chris
>
>
>
>
>



Re: MachineName = DomainName ??? by Chris

Chris
Thu Nov 04 10:15:36 CST 2004

Thanks a TON!

--

Hope this helps,

Chris Roth
Visio MVP


"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:OmNiIXowEHA.2624@TK2MSFTNGP11.phx.gbl...
> Chris,
>
> Even on a machine that is a member of a domain, a user can log in under an
> account defined on the local machine, as opposed to the domain. In such
> cases, the local machine name will be returned from
> System.Environment.UserDomainName.
>
> HTH,
> Nicole
>
>
> "Chris Roth" <visioguy@reallyreallywarmmail.com> wrote in message
> news:%23LpSgLowEHA.3824@TK2MSFTNGP15.phx.gbl...
>> Hi All,
>>
>> We're getting a situation where occasionally our queries to MachineName
>> and DomainName are both returning the domain. We're using the following
>> calls:
>>
>> System.Environment.MachineName
>>
>> System.Environment.UserDomainName
>>
>> The application deals with Active Directory, so we are assuming that our
>> users are system admins who are logged into domains, not workgroups. Is
>> there a bug in the framework, or am I just a net-tard?
>>
>> Any help, much appreciated.
>>
>>
>>
>> Chris
>>
>>
>>
>>
>>
>
>