views:

7

answers:

1

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

alt text

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-

+1  A: 

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 physicalDeliveryOfficeName in the DirectoryEntry's .Properties collection....

marc_s
Thanks! Your powers are Mighty!
Eric Brown - Cal