Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (12 loc) · 1.17 KB

README.md

File metadata and controls

20 lines (12 loc) · 1.17 KB

PS

Powershell scripts - Mostly aimed at O365

O365_Best_Practices

This script connects to your Office365 tenant and gets a list of all mailboxes, It then lets you adjust the below settings as required

Default Values - .\O365_Best_Practices.ps1 -DeletedItemsRun $true -LitigationHoldRun $true -AuditingRun $true -IMAPPlanRun $false -IMAPMailboxesRun $false

DeletedItemsRun - Adjusts the RetainDeletedItemsFor to 30. This allows you to recover items from the recycle bin for up to 30 days instead of 14 days MS Link

LitigationHoldRun - Adjusts Litigation Hold to 2555 days for all EOP2 and E3+ licences - MS Link

AuditingRun - Turns on all Mailbox Auditing so you can see all possible events in the Audit Log

IMAPPlanRun - Disables POP/IMAP for all future mailboxes by turning it off in the CAS plan

IMAPMailboxesRun - Disables POP/IMAP for all current mailboxes by turning it off directly at the mailbox level