pop_cola 0 Newbie Poster

Hi VB.NET gurus,

Is there any way to get the name of a Primary Domain Controller (PDC) of a different domain (let's say workDomain) by using a computer that is not part of the domain (let's say home-PC)? If there is, can somebody show me how or point me to the right direction. From time to time, I connect my home-PC to workDomain using NetExtender and use Windows Impersonation.

I'm assuming that if you use System.Environment.GetEnviromentVariable("LOGONSERVER") on a workDomain/workPC1 it would be the same as the name of Primary Domain Controller? When I use the same code above on my home-PC it would return null since I haven't setup any domain on my home network.

I've tried searching the net but nothing came up.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.