Active Directory Authentication(For Domain User)
-
All, I need to perform a Computer query in AD, but I am unsure how to authenicate myself. A little background: 1). I am currently logged into a machine on the domain with my domain userID. 2). I have Admin rights to the Domain as it works perfectly with VBScript (without authentication), but not with C#. I read that SetPrincipalPolicy() would allow you to authenticate yourself without providing a Username and password, but I have yet to find a way to use it successfully. Does anyone have any ideas? Thank you
-
All, I need to perform a Computer query in AD, but I am unsure how to authenicate myself. A little background: 1). I am currently logged into a machine on the domain with my domain userID. 2). I have Admin rights to the Domain as it works perfectly with VBScript (without authentication), but not with C#. I read that SetPrincipalPolicy() would allow you to authenticate yourself without providing a Username and password, but I have yet to find a way to use it successfully. Does anyone have any ideas? Thank you