Managing Outlook Tasks with Powershell (Exchange Online)

Andy Hodkinson 1 Reputation point
2021-02-19T17:11:17.417+00:00

Hi, I have a group of users with thousands of completed Tasks in their Outlook (fallout from a CRM project) and I need a script to target a specific users mailbox and then delete all tasks. If I can limit this to completed tasks only then great, but I can't find anywhere online how to target the Tasks folder. Our users have been migrated to Exchange Online. Any help would be much appreciated, thanks.

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,068 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jade Liang-MSFT 9,976 Reputation points Microsoft Employee
    2021-02-22T06:46:29.47+00:00

    Hi @Andy Hodkinson ,
    Welcome to our forum,

    I have researched a lot about your needs but haven't found a direct method to manage the mailbox's task via exchange powershell. However, I found a related script that mentioned getting Outlook Tasks in PowerShell, please kindly check if it could be helpful to you.(Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    If that's invalid, please kindly understand here we mainly focus on general issue about Outlook desktop client, considering your issue may be more related to powershell script, in order to solve it better, it's suggested to add other powershell or development tag in your post, so that there may be some relevant experts to provide you with more targeted suggestions on powershell or development.

    Hope your issue would be resolved soon.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.