I'm trying to create an external API for managing mailboxes (as well as certain other things) on an Exchange server.
I'm starting small - so first I want to be able to manage Exchange resources (which are basically mailboxes with a property flag set).
The EWS service doesn't offer the functionality I need, so I'm looking for other options.
PowerShell can perform basic CRUD operations on mailboxes, HOWEVER I couldn't get it to retrieve additional mailbox information (resources can have additional contact information like location, phone number, etc. which I would also like to retrieve / set).
I could retrieve these values by accessing the LDAP object, but this seems wrong because I now have to use two separate technologies - I wonder if there's a better way to do this. After all, I find it hard to believe that the ECP (graphical GUI web panel for managing Exchange) accesses LDAP directly.
Is there some kind of managed API (even if it can be used on the same server as Exchange only) which would allow me to manipulate the mailboxes and all things related (delegates, auto-acceptance rules, contact information, etc.)?
EDIT: I was able to get the additional information using Get-Recipient
command, however there's no apparent way to SET these properties (outside of changing the LDAP entries).