10 нояб. 2016 г. - SamAccountName; // or whatever you mean by "login name" } AM makes it really easy to play around with users and groups in AD! DirectoryServices..