Sync-Email Cmdlet
Syncs IMAP data.
Syntax
Sync-Email [parameters]
Remarks
The Sync-Email cmdlet allows you to replicate a data source locally and maintain it with the full caching functionality of the cmdlet.
$conn = Connect-Email -Port 993 -Server 'outlook.office365.com' -Password 'password' -User 'user' -Protocol 'IMAP' -SMTPPort 587 SMTP Server 'smtp.office365.com' Sync-Email -Connection $conn -Table "[INBOX]"