Question

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#?

Was it helpful?

Solution

System.Environment.GetEnvironmentVariable("logonserver")

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top