Get Domain LogonServer in C#
问题 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: System.Environment.GetEnvironmentVariable("logonserver") 来源: https://stackoverflow.com/questions/431836/get-domain-logonserver-in-c-sharp