How to delete emails from a users mailbox in Office 365!

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 33

  • @Zen_Monkey
    @Zen_Monkey Месяц назад

    Thank you big time for this one, worked perfectly for me.

  • @bushayijadavid803
    @bushayijadavid803 2 года назад +4

    ======Current script using an account with MFA====
    Import-Module ExchangeOnlineManagement
    Connect-IPPSSession
    New-ComplianceSearchAction -SearchName "Name of the search" -Purge -PurgeType HardDelete

  • @W.Wallace73
    @W.Wallace73 Год назад

    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?

  • @lucasgrzybowski1310
    @lucasgrzybowski1310 2 года назад +1

    Great job! Works!!!

  • @sujiththyagaraja8619
    @sujiththyagaraja8619 2 года назад +1

    Thank you 🙏

  • @SC_544
    @SC_544 3 месяца назад

    Hi,
    Is there a way we can do this without utilizing the core discovery to save time?

  • @danielvenkat5405
    @danielvenkat5405 10 месяцев назад

    thanks brother

  • @DMBTravels2023
    @DMBTravels2023 2 года назад +1

    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?

    • @liams-tech
      @liams-tech  2 года назад

      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!

    • @malyalasantoshreddy7238
      @malyalasantoshreddy7238 2 года назад

      No option to delete if they move to psts

  • @liams-tech
    @liams-tech  Год назад

    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.

    • @sgcatr
      @sgcatr Год назад

      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?

  • @MrTjurk
    @MrTjurk 2 года назад

    What value one must enter for ConnectionUri?

  • @imranjaved716
    @imranjaved716 2 года назад +1

    Where is the script. I Dont see it in description

    • @liams-tech
      @liams-tech  2 года назад

      Script is on the website, link in description

  • @sachinprasad3642
    @sachinprasad3642 3 года назад

    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

    • @liams-tech
      @liams-tech  3 года назад

      Hi, this will only work on your Office 365 organisation

  • @johnturner3166
    @johnturner3166 2 года назад

    wont work without basic authentication being enabled fyi

    • @liams-tech
      @liams-tech  2 года назад

      Yeah, Basic Auth is scheduled to be turned off for all tenants next month, I'll create a new video soon using EXOv2 module.

  • @peterc7685
    @peterc7685 Год назад

    is there a permanent/hard delete option so it's unrecoverable?

    • @liams-tech
      @liams-tech  Год назад

      "-PurgeType HardDelete" will pernamently remove it from mailboxes, SoftDelete moves it to deleted items

    • @peterc7685
      @peterc7685 Год назад +1

      @@liams-tech Thanks!!

    • @liams-tech
      @liams-tech  Год назад

      @@peterc7685 No problem!

  • @MrTjurk
    @MrTjurk 2 года назад

    How to delete within the UI, not in powershell?

    • @liams-tech
      @liams-tech  2 года назад

      At the time of writing, you can't. They can only be deleted via powershell

    • @MrTjurk
      @MrTjurk 2 года назад

      @@liams-tech Thanks. What value one must enter for ConnectionUri?

  • @sherbornegirlsschool1456
    @sherbornegirlsschool1456 2 года назад

    I followed the steps, but the mails aren't deleted.

    • @liams-tech
      @liams-tech  2 года назад

      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

    • @MrZ____
      @MrZ____ 2 года назад

      @@liams-tech Files cannot be loaded because running scripts is disabled on this system. Provide a valid
      certificate with which to sign the files.

    • @liams-tech
      @liams-tech  2 года назад

      @@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.

  • @kxxx1
    @kxxx1 2 года назад

    Thank you 🙏