No need for a bunch of hoopla, here’s the short and sweet version.
Add Send As Permission for All Users from a User Account
Get-Mailbox -ResultSize Unlimited | Add-ADPermission -User "YourDomain\Username" -Extendedrights "Send As"
To add send as permissions for future users, we need to create a powershell script with the above line in it, make sure you have enabled the use of unsigned scripts by issuing the “Set-ExecutionPolicy remotesigned” command at an administrator ran PowerShell prompt, and create a task scheduler job to run our script with the administrator credentials saved in there.
Continue reading “Exchange 2010 – Add Send As Permission for All Users/Future Users from a User Account”
Sure there are a few DFS-R scripts out there to choose from in various languages like batch, vbscript, and even PowerShell to name a few, but I decided to write one to fit my own personal needs at the time.
I created this so that it could be ran as a scheduled task each morning. Basically the script just lets you set an array of different replication groups to run the Health Report on, attaches them all to a single email, and then shoots that email off via an SSL connection through an Exchange server in this particular case. Continue reading “PowerShell Script – Generate DFS-R Health Reports and Email Them”
I needed a way to track which Exchange users were remotely retrieving their emails outside of the office on their phones and other email clients, so I pieced together this batch/pseudo VB script that can be ran from the Windows Task Scheduler at midnight. The only dependency/third party app required is the MS Log Parser executable. Also, for the SQL query to filter out the proper internal networks from the log file, you will have to edit the LOCALSUBNET and CHARLENGTH variables.
Continue reading “Batch Script – Parse MS Exchange IIS Log File, Filter All External Requests, and Email It”
If your in a bind, your server can spare the extra resources, and you’ve got a lot of mailboxes to move to a different database in a hurry for one reason or another, you will probably want to edit the “MSExchangeMailboxReplication.exe.config” file located in the “Bin” folder of your server’s installation directory to increase the performance of the Microsoft Exchange Mailbox Replication Service. For a complete listing of the variables and their options in the config file, check out this site.
Continue reading “Exchange Server 2010 – Increase Number of Move Requests by the Mailbox Replication Service”
As mentioned in a previous post, if you’re Email Server is running out of hard drive space and you’re in a world of hurt, there are several steps you must take to get that space back. Even if you have your user’s tidy up their mailbox and you force delete out their RecoveryItems folders, you will essentially be creating free whitespace to store more messages but the size of your database will never shrink below it’s current state. To actually shrink size of the database file, you will have to do the following:
- Have the end users get rid of all their unimportant emails and empty their Deleted Items folder.
- Purge all of the user’s RecoveryItems folders. To learn how, read this.
- Either create a new mailbox database, mount it, move all the mailboxes to it, then dismount and delete the old database
— OR —
Dismount the databases and run the defrag utility
Either way, both scenarios are extremely time consuming so get your blanket and sun tan lotion because you’re never getting off that beach, just the way you never got into the NHL, ya jackass!
Continue reading “Exchange Server 2010 – Shrink Database Size – OR – Reclaim Lost Database Storage Space”
In the Exchange Management Shell, to get a list of mailboxes by creation date in ascending order:
Get-Mailbox -ResultSize unlimited | Sort-Object WhenMailboxCreated | ft Name,WhenMailboxCreated -autosize
Continue reading “Exchange Server 2010 – Get a List of Mailboxes by Creation Date”
To get a list of all available column names or mailbox attributes so you know what values to enter when trying to sort query results with the “Get-Mailbox” command, issue the following in the Exchange Management Shell:
Continue reading “Exchange Server 2010 – Get a List of All Mailbox Columns/Attribute Names”