Exchange 2013: Retrieve all the child folders under the message root folder
This sample authenticates an email address and password entered from the console, retrieves a list of all the folders under the root message folder, and then outputs each folder's display name, folder class, and the number of subfolders folders it contains.