Connect to an Active Directory and retrieve Users and their information

This post will explain how you would connect to an local Active Directory (AD), and also how to retrieve the AD information about each user such as the user SID, and how we can update each user in a SQL table with this information. I have a class that looks like this containing some properties. …