Here are some useful LawToolBox PowerShell Scripts to help with deployment and management of our product.



NOTE: Please check and make sure the scripts are applicable in your environment before running



SAMPLE: This will hide all LawToolBox groups from the global address book

Get-UnifiedGroup -Filter {Name -like 'tb.*'} | Set-UnifiedGroup -HiddenFromAddressListsEnabled $true


SAMPLE: This will make all LawToolBox groups not show up in Outlook (Run periodically to clear new groups)

Get-UnifiedGroup -Filter {Name -like 'tb.*'} | Set-UnifiedGroup – HiddenFromExchangeClientsEnabled


SAMPLE: This will make all LawToolBox groups that are created not send that welcome email message

Get-UnifiedGroup -Filter {Name -like 'tb.*'} | Set-UnifiedGroup -UnifiedGroupWelcomeMessageEnabled:$false


SAMPLE: Canceled deadlines filter

Set-CalendarProcessing -Identity "user@lawfirm.com" -RemoveOldMeetingMessages $true


SAMPLE: Share Central Docketing User's Calendar with View Details rights for all internal users

Add-MailboxFolderPermission -Identity centraldocketingacount@lawfirm.com:\calendar -AccessRights Reviewer


SAMPLE: Removes all of LTB Deadlines from Calendar (useful for migrations) NOTE: You must have roles set for Discovery Management and Mailbox Import-Export Management enabled in Exchange Admin > Roles. Search-Mailbox cmdlet will be deprecated Sept. 1, 2023

Search-Mailbox -Identity user@lawfirm.com -SearchQuery 'Body:”LTBUID”‘ -DeleteContent