Ray Booysen
Ray Booysen

Reputation: 30041

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

Upvotes: 1

Views: 4720

Answers (1)

Dave Markle
Dave Markle

Reputation: 97821

System.Environment.GetEnvironmentVariable("logonserver")

Upvotes: 6

Related Questions