views:

1000

answers:

2

In a command prompt I am able to get the domain logon server by typing:

echo %logonserver%

How can I get this same result in C#?

+1  A: 

System.Environment.GetEnvironmentVariable("logonserver")

Dave Markle
A: 

what if i do not know the logonserver varialble value???

you do. It is logonserver
Ray Booysen