Re: Retrieve Domain Name



Hello

I need to create a simple application that returns the domain name where the
user name logs in. For example, if I acccess in a computer with the domain
user Contoso\bruno, my application should return the value "CONTOSO".
Basically, my application when executed in a pc that belongs to a domain,
must return the CONTOSO.COM (domain name). All this in Visual Basic.net.

Thank you for help

"Herfried K. Wagner [MVP]" wrote:

> "Bruno" <Bruno@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb:
> > I have a big problem. I can't retrieve the domain name (example:
> > contoso.com) using visual basic.net language.
>
> Can you describe the scenario in more detail? What do you mean with
> "retrieving a domain name"?
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>
>
>
.