Get domain or workgroup info in windows 2000

M

Manoj

Hi,
How can we get info as to if a terminal is on a workgroup or a domain and
the name of the domain\workgroup in windows 2000 professional through code
thanks in advance
Manoj
 
G

Guest

Hi,

If your app runs on the machine you can use:

System.Environment.GetEnvironmentVariable("USERDOMAIN");

cheers
Salva
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top