Home

Permanent link to this article: https://www1.wperry.net/

Soft Deleted Mailbox Cleanup

### SoftDeleted Mailbox Cleanup ### # Our Retention policy is set deleted mailbox cleanup at 3650 Days. # Moved mailboxes leave behind SoftDeleted copies that are not needed beyond ensuring that the move was successful. # This script will remove all SoftDeleted mailbox copies over 3o days old. ### ### ### Load Exchange Powershell Management …

Read more

Add Allowed IP/Range to All Send Connectors

If you have Recieve connectors spread across multiple Exchange servers, this can help to add allowed senders to all of them at once. Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010, Microsoft.Exchange.Management.PowerShell.Setup , Microsoft.Exchange.Management.Powershell.Support # Create an Array of IP addresses you want to allow. You can use any format allowed by send connectors here to specify individual IPs or Ranges …

Read more

Add Trusted Sender to All Users

This script will add a list of email addresses to the trusted senders list for all mailboxes in your organization. ### Load Exchange Powershell Management Modules ### Write-Host “Loading Exchange Management Powershell Modules” Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010, Microsoft.Exchange.Management.PowerShell.Setup , Microsoft.Exchange.Management.Powershell.Support ##### # Add all your trusted senders and domains to this Array $orgList = @(“[email protected]”,”[email protected]”,”@trusteddomain.com”) # Load …

Read more

Message Logs Searcher for Multiple Mailbox Servers

I got tired of manually running MessageTracking Logs across all of our mail servers so I knocked out this script to search across all servers and pull all the data together into a single data table or export the results to a CSV. You only need to set your search parameters on lines 14-19 and …

Read more

Synchronize Lync Enabled Users with Active Directory

When I learned that Disabling an AD account does not prevent users from logging in to Lync, I knocked this out and scheduled it to run periodically to keep my Lync Enabled users in sync with AD. ### Synchronize your Lync Enabled users with AD Enabled Users ### Import-Module Lync Import-Module ActiveDirectory # Set your …

Read more

Exchange 2013 Actual Mailbox Size Report

I wrote this script to collect all mailbox size information including the RecoverableItems folder info which is not included in Get-MailboxStatistics TotalItemSize. This will give a fuller picture of the storage used by each mailbox. ### Load PS Modules needed to access Exchange PS CmdLets ### Write-Host “Loading Exchange Management Powershell Modules” Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010, Microsoft.Exchange.Management.PowerShell.Setup …

Read more