Month: July 2014

How to check and disable Transport agents in Exchange

Posted on

To get the list of Transport agents running on your Exchange server run the command:

Get-TransportAgent

And to disable a specific agent:

Disable-TransportAgent -identity “transport agent name”

How to find the owner of an alias in Exchange

Posted on

To find out who the owner is for an alias or email address in Exchange.  You should be able to run the following exchange powershell command:

get-recipient -results unlimited | where {$_.emailaddresses -match “emailaddresshere”} | select name,emailaddresses,recipienttype

How to apply a retention policy to all mailboxes

Posted on Updated on

To apply the Retention Policy to all mailboxes:

Get-Mailbox | Set-Mailbox -RetentionPolicy “name of policy”

 

To verify which mailboxes the policy was applied to:

Get-Mailbox -Resultsize Unlimited | select Alias, RetentionPolicy

 

To run the policy manually:

Start-ManagedFolderAsssistant or Start-ManagedFolderAssistant -identity “user”

 

To apply policy on non-default folders like Inbox, Sent and Deleted items:

Create a new Retention Policy Tag for “All other folders in the mailbox”.  Just a word of caution, this policy will also be applied to NOTES and CALENDAR items.  If you do not wish to include these items, you can create a separate policy for these items and set to ‘Disable this tag (items are never expired, moved or deleted).

Deleting email from multiple mailboxes

Posted on Updated on

Here is the process on how to delete an email from multiple mailboxes via Exchange PowerShell

Get-Mailbox -Database <DbName> | Export-Mailbox -SubjectKeywords “Subject” -DeleteContent

Make sure that the user who is running the command has FullAccess permission to the mailboxes.

In Exchange 2010 SP1 the command is:

Get-Mailbox -Server <ServerName> | Search-mailbox -SearchQuery ‘Subject:”subject here”‘ – DeleteContent

 

How to configure Mailtips in Exchange 2010

Posted on Updated on

MailTips is by default enabled in a fresh install of Exchange 2010.

Here is a link to TechNet:

http://blogs.technet.com/b/ferris/archive/2010/03/30/howto-configure-mailtips-in-exchange-server-2010-here.aspx

How to find TOP 10 biggest mailboxes in Exchange

Posted on

For a specific Exchange server:

Get-Mailboxdatabase -server <Exchange servername> | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label=”Size(Gb)”; Expression={$_.TotalItemSize.Value.ToGb()}} -First 10 | ft -auto

 

For a specific database:

Get-Mailboxdatabase <databasename>| Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label=”Size(Gb)”; Expression={$_.TotalItemSize.Value.ToGb()}} -First 10 | ft -auto

How to remove additional mailboxes from your Outlook

Posted on Updated on

After adding an additional mailbox in your Outlook through Account Settings, sometimes the system won’t allow you to remove it easily.  Below are the steps in removing the additional mailbox from your Outlook via ADSIEdit.

1.  Open ADSIEdit.msc

2.  Connect to one of your primary Domain Controllers

3.  Drill down to the account, or object you wish to be removed from

4.  Right-click on the object and select Properties

5.  Under the Attribute Editor tab, scroll down to “MSExchDelegateListLink” and remove your self from that list

6.  Restart your Outlook and the additional mailbox should no longer show