I'm using Powershell manage my emails in Outlook :
# Connect $Outlook = New-Object -ComObject Outlook.Application # Select the "TDD" subfolder from my mailbox $EmailsInFolder = $Outlook.Session.Folders.Item(5).Folders.Item("Inbox").Folders.Item("TDD").Items $EmailsInFolder.count
This doesn't give me access to all of my mail, only some of the most recent items.
When I view the emails in Outlook I see the text "There are more items in this folder on the server - Click here to view more on Microsoft Exchange". Clicking this shows the complete set of mails.
How do I tell my Powershell script to get the items from the server?