I know that this type of question has been asked before, but other methods are failing me right now.
As it stands our windows service polls AD, given an LDAP (i.e. L
You can retrieve the name of the domain that the current user is on using the Environment.UserDomainName Property.
string domainName; domainName = System.Environment.UserDomainName;