### 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 …
Permanent link to this article: https://www.wperry.net/code/soft-deleted-mailbox-cleanup/
I just knocked this out to give a quick display of the status of all Exchange databases across all mailbox servers in the org. you could convert the table to HTML and email it at the end, log to a csv, or just display it in the Powershell window. The script is fully generic so …
Permanent link to this article: https://www.wperry.net/uncategorized/exchange-2013-database-status-report/
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 …
Permanent link to this article: https://www.wperry.net/code/add-allowed-ip-range-to-all-send-connectors/
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 …
Permanent link to this article: https://www.wperry.net/code/add-trusted-sender-to-all-users/
Permanent link to this article: https://www.wperry.net/code/message-logs-searcher-for-multiple-mailbox-servers/
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 …
Permanent link to this article: https://www.wperry.net/code/synchronize-lync-enabled-users-with-active-directory/
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 …
Permanent link to this article: https://www.wperry.net/exchange-2013/exchange-2013-actual-mailbox-size-report/
I use this to run a quick HealthCheck on all my CAS services. You should probably be checking this on your NLB and whatever monitoring platform you are using. The script runs against the virtual directories of each CAS server in your Exchange environment and returns the results in a table. A 200 response means …
Permanent link to this article: https://www.wperry.net/code/healthcheck-script/
Page has moved here. You will be redirected in 5 seconds.
Permanent link to this article: https://www.wperry.net/personal/projects/codelib/detail-asp/
This is a script to keep iTunes from unsubscribing to podcasts that you do not listen to regularly.
To use, save the following text into a file with the extension “vbs” for example “KeepPodcasts.vbs”. Then either put it in your task scheduler or run it regularly.
2012-01-26 Update: Modified script to load the “Podcasts” playlist and check all items rather than looping through the entire library looking for individual podcasts. This makes the script run much faster for users with large iTunes libraries.
Permanent link to this article: https://www.wperry.net/code/itunes-podcast-playcount-updater-ver2/