======Current script using an account with MFA==== Import-Module ExchangeOnlineManagement Connect-IPPSSession New-ComplianceSearchAction -SearchName "Name of the search" -Purge -PurgeType HardDelete
Really good content! Thank you! I have a similar situation, but in our case my users should file the emails into our DMS, so my question is how can I determinate what emails have been filed?
Hello Liam - Do you know how to delete emails from the users mailbox even if they transfer it to PST? like steps? should I exclude the user to retention hold then purge it?
Hi Jeem, I'm not entirely sure, the method above would delete the emails from the server and any imap mail clients, but if they have already exported to PST it is a lot harder to remove, it's effectively a offline zip file with the email(s), if you manage the clients device you can stop them from creating PSTs via Group Policy, if you don't manage the device you can create conditional access policies to only allow email access on company devices, however these are proactive measures, if someone already has it, it's very hard to delete the email from PST file. Hope this makes sense!
I have been using Microsoft defender for six months, and I never saw a section as Discovery, but explorer. Are you sure the remaining steps are the same?
Hi, By doing this will this delete email from non Office 365 mailbox also ex. Gmail / Yahoo / or other domain? There are inquiry that they sent unwanted email and wants to recall it...? will this work for non Office 365 as well
Thank you big time for this one, worked perfectly for me.
======Current script using an account with MFA====
Import-Module ExchangeOnlineManagement
Connect-IPPSSession
New-ComplianceSearchAction -SearchName "Name of the search" -Purge -PurgeType HardDelete
Really good content! Thank you! I have a similar situation, but in our case my users should file the emails into our DMS, so my question is how can I determinate what emails have been filed?
Great job! Works!!!
No worries, thanks!
Thank you 🙏
Hi,
Is there a way we can do this without utilizing the core discovery to save time?
thanks brother
Hello Liam - Do you know how to delete emails from the users mailbox even if they transfer it to PST? like steps? should I exclude the user to retention hold then purge it?
Hi Jeem, I'm not entirely sure, the method above would delete the emails from the server and any imap mail clients, but if they have already exported to PST it is a lot harder to remove, it's effectively a offline zip file with the email(s), if you manage the clients device you can stop them from creating PSTs via Group Policy, if you don't manage the device you can create conditional access policies to only allow email access on company devices, however these are proactive measures, if someone already has it, it's very hard to delete the email from PST file. Hope this makes sense!
No option to delete if they move to psts
The Powershell script in the video uses legacy auth and no longer works, i've updated the script onto my blog. Rest of the steps remain the same.
I have been using Microsoft defender for six months, and I never saw a section as Discovery, but explorer. Are you sure the remaining steps are the same?
What value one must enter for ConnectionUri?
Where is the script. I Dont see it in description
Script is on the website, link in description
Hi,
By doing this will this delete email from non Office 365 mailbox also ex. Gmail / Yahoo / or other domain?
There are inquiry that they sent unwanted email and wants to recall it...? will this work for non Office 365 as well
Hi, this will only work on your Office 365 organisation
wont work without basic authentication being enabled fyi
Yeah, Basic Auth is scheduled to be turned off for all tenants next month, I'll create a new video soon using EXOv2 module.
is there a permanent/hard delete option so it's unrecoverable?
"-PurgeType HardDelete" will pernamently remove it from mailboxes, SoftDelete moves it to deleted items
@@liams-tech Thanks!!
@@peterc7685 No problem!
How to delete within the UI, not in powershell?
At the time of writing, you can't. They can only be deleted via powershell
@@liams-tech Thanks. What value one must enter for ConnectionUri?
I followed the steps, but the mails aren't deleted.
How long have you given it? Depending on the size of the results it can take an hour or so. The more mailboxes and results the longer it will take
@@liams-tech Files cannot be loaded because running scripts is disabled on this system. Provide a valid
certificate with which to sign the files.
@@MrZ____ You can use 'Set-Executionpolicy Bypass' before running the script which will allow it to run, just dont forget to turn it back afterwards.
Thank you 🙏