jdgregson / o365utils Goto Github PK
View Code? Open in Web Editor NEWUtilities to administer Office 365 and Exchange Online via PowerShell.
License: GNU General Public License v3.0
Utilities to administer Office 365 and Exchange Online via PowerShell.
License: GNU General Public License v3.0
As MFA adoption increases, it will become vital for Delete-Emails-O365 to support MFA-enabled login.
When an email is deleted from only one mailbox, confirmation search gets stuck in an infinite loop (creating compliance searches forever) and is unable to verify the deletion.
How confirmation searches currently work:
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.
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?
Perhaps add something like $answer = Read-Host "[Y] Yes [N] No [M] More details (default is
"N")"
after?
Per https://github.com/MicrosoftDocs/office-docs-powershell/#817d40e9bfa5fcf802b0694b71fbef3944cc0fc4, Microsoft has added HardDelete
as a purge type for New-ComplianceSearchAction
. We should implement this as an option in Delete-Emails.ps1.
I tried the script today, but seems like the Purge is limited to 10 items.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.