Get Domain LogonServer in C#

4.6k Views Asked by At

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

There are 1 best solutions below

1
On BEST ANSWER

System.Environment.GetEnvironmentVariable("logonserver")