Reading Exchange Policies - exchange-server

Is there an API to read programmatically settings/policies from a given exchange server? Like this one.
It doesn't seem like there's an API via EWS.

The only API for this are the Powershell cmdlets.

Related

How to connect to an imap connector from a windows service using OAuth2

We have a windows service that collects mail from via an imap connector and then processes that email and attachments into a database. Is there a way that we can do this using OAuth2 when exchange online removes support for basic authentication? There is no user interface to the service or user access to teh system when it is running beyond the start and stop of the service.
We are currently using Chilkat's excellent Imap component.
Yes, Microsoft have finally released support and documentation for this in Exchange Online. See the following Microsoft document:
Authenticate an IMAP, POP or SMTP connection using OAuth

Are there any alternatives Exchange EWS api?

Im currently using the Exchange EWS api to sync two calendars. There is a customer that does not want open up EWS to the public.
Are there any other methods, apis, etc to CRUD Exchange calendars?
DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway. It's implemented in Java and should run on any platform.
It's been a while since I've implemented it on local machines for single app use inside a WAN and also on web facing servers as a general gateway into Exchange for Linux users.
I don't know if it plays well with O365 etc, as I haven't needed to find out yet.
Its a SourceForge project with some sponsorship from the French Defense Agency.

Authentication/Authorization For Self-Hosted Exchange Servers

This page states that before an application can access the API (I'm particularly interested in the Calendar API), it must be registered with Azure AD. Is this also true for organizations that may host their own Exchange servers?
Could someone provide a breakdown of what's necessary for me to get started with accessing the API to access the users' Calendar? I'm aware of the API reference, but I'm not entirely sure what's necessary to do before I can use the API.
That page is for Office365, not self hosted ones.
You can access your local/self hosted Exchange server with Exchange Web Services by using username/password, or even your local AD if you set it up correctly.
The API it is talking about is not available to on-premise Exchange Server, it is only available to Exchange Online in Office 365. This may change in the future, but currently you cannot use it in on-premise. Exchange Web Services is the way to go for on-premise.

Exchange web services API - Get all mailboxes

Is there a way to get all the existing mailboxes in exchange? I need this to be able to get all the tasks from all mailboxes.
Thanks.
Not in the web service API itself. You would need to look at the Get-Mailbox cmdlet in Powershell.

How do I discover all mailboxes for an Exchange Server using Exchange Web Services?

I'm using Exchange Web Services Managed API 1.0 to access the Exchange servers (2007) in my organization. I need to iterate over all the mailboxes on a given server. I haven't seen a way to get the list of mailboxes defined for a given Exchange server. I have been able to use the AutoDiscover service to find the address of a hub server for a specific mailbox, but I'm interested in getting a list of all mailboxes. Can someone point me in the right direction?
If your problem is not yet solved I would you recommend use just pure LDAP queries instead of Exchange Web Services. The information which you need are saved in homeMDB, msExchHomeServerName and probably homeMTA Active Directory attributes. You can modify LDAP query from http://www.msexchange.org/tutorials/Creating_a_list_of_Users_and_their_email_addresses_in_Exchange_2000_2.html or http://technet.microsoft.com/en-us/library/bb125087(EXCHG.65).aspx to receive information which you need.

Resources