Christian Hans
asked on
Powershell - Delete Outlook Task from multiple user mailboxes
Is there a way to administratively run a PowerShell script to delete a specific Outlook Task sent out to a subset of users?
Thanks in advance.
Thanks in advance.
ASKER
Thanks for the assist, unfortunately I get this result:
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "lastname, firstname" value of type
"Deserialized.Microsoft.Ex change.Dat a.Director y.Manageme nt.Mailbox " to type "Microsoft.Exchange.Config uration.Ta sks.Mailbo xOrMailUse rIdParamet er".
+ CategoryInfo : InvalidData: (:) [Search-Mailbox], ParameterBindin...mationEx ception
+ FullyQualifiedErrorId : ParameterArgumentTransform ationError ,Search-Ma ilbox
+ PSComputerName : ps.outlook.com
"Deserialized.Microsoft.Ex
+ CategoryInfo : InvalidData: (:) [Search-Mailbox], ParameterBindin...mationEx
+ FullyQualifiedErrorId : ParameterArgumentTransform
+ PSComputerName : ps.outlook.com
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In short, you can use the following cmdlet for your purposes:
Open in new window
Before you run this command, check if it returns the results you are looking for by replacing -DeleteContent - Force with the -EstimateResultsOnly