So im stuck on a command im trying to run. Basically i want to delete all emails from the deleted items folder of a specified inbox. Looking up the commands to do it (since they changed it up on me and my old command doesnt work!) I can do a "Search-Mailbox" but that doesnt recognize the -includefolders parameter. Or i could run the New-MailboxExportRequest which does recognize the -IncludeFolders but does not recognize -DeleteContent. I tried to pipe the commands together but it doesnt seem to accept it. Anyone have any suggestions?
↧