I am trying to create an easy console one button, one textbox. If I click the button the display name will appear in text box. I added "using System.DirectoryServices;". There could be hardcoded the samaccountname. This is only for me to understand how to get these parameters in C#.
And how to manage it in:
private void button1_Click(object sender, EventArgs e)
DirectorySearcher Dsearch = new DirectorySearcher(entry);
DSearch.Filter = "(&(objectClass=user)(l=" + Name + "))";
textbox1.text = ??