Get Domain LogonServer in C#
-
08-07-2019 - |
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#?
Solution
System.Environment.GetEnvironmentVariable("logonserver")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow