I have a PowerShell script which saves email attachments to local disk. To get the emails the EWS Managed API (Download here) is used. Emails that contain attachments get lo