Get domain or workgroup info in windows 2000

  • Thread starter Thread starter Manoj
  • Start date Start date
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
 
Hi,

If your app runs on the machine you can use:

System.Environment.GetEnvironmentVariable("USERDOMAIN");

cheers
Salva
 
Back
Top