I need a way to determine whether the computer running my program is joined to any domain. It doesn\'t matter what specific domain it is part of, just whether it is connecte
Avoid LSA which is a wrong method. You must use DS api (2 lines of code)