In c# I’m trying to set the office field

When I do this:
ADEntry.Properties[ “office”].Add( “Alaska”);
It says office does not exist.
Can anyone tell me where to get at this property?
Thanks,
Cal-
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out Richard Mueller’s web site – he has tons of reference Excel sheets on what property in the AD UI maps to what underlying AD property on
DirectoryEntry.Your concrete “office” example maps to a property called
physicalDeliveryOfficeNamein theDirectoryEntry‘s.Propertiescollection….