Coder Social home page Coder Social logo

o365utils's People

Contributors

jdgregson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

o365utils's Issues

Confirmation Searches never complete if emails are still found

How confirmation searches currently work:

  1. for each user who had matches a new search string is crafted which will exclude various deleted items folders
  2. all of those searches are performed over and over again in a loop until the search returns 0 results

The problem with this is that if the email is not deleted, the confirmation search will never complete. For example, if the email fails to delete, or if the user receives another matching email while the confirmation search is running, the search will never confirm or error out.

There should be a timeout, or a maximum number of searches. After this timeout there user should be notified that the deletion could not be confirmed and that they should manually verify or try the deletion again.

Delete items limited to 10?

I tried the script today, but seems like the Purge is limited to 10 items.

https://docs.microsoft.com/en-us/powershell/module/exchange/policy-and-compliance-content-search/new-compliancesearchaction?view=exchange-ps

A maximum of 10 items per mailbox can be removed at one time. Because the capability to search for and remove messages is intended to be an incident-response tool, this limit helps ensure that messages are quickly removed from mailboxes. This action isn't intended to clean up user mailboxes.

Add a -cleanup option

When something goes wrong and the user exits Delete-Emails incorrectly, several compliance searches can be orphaned and left behind permanently. Delete-Emails names its compliance searches something similar to delete-emails-daa2450 so that they are easy to identify, but there is no easy way to remove them all at once.

We should add a -cleanup parameter to the script which will remove all searches starting with delete-emails-* and then exit.

One consideration though is that large organizations can be running Delete-Emails many times, and using the proposed -cleanup option could remove active deletion or confirmation searches for currently running instance of Delete-Emails. Maybe by default it will only remove searches which have completed more than five minutes ago?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.