What domain am I in?

  • Thread starter Thread starter Dave Espley
  • Start date Start date
D

Dave Espley

Is there a way in C# to tell which domain a Computer is in (not the user
logged on). The code must run without a user being logged onto the box.

Basically I want the application to check the machine it is running on to
find which domain it is registered to.

Any help greatly appreciated

Dave
 
You can use static GetEnvironmentVariable function from within Environment
class..
HTH
Ashish
 
Back
Top