Exchange Server 2010 – Changing Message Tracking Log Retention Period

Open the Exchange Management Shell console and determine your server’s identity and verify logging is enabled with either of these commands.

Get-TransportServer | Select Name,MessageTrackingLogEnabled | ft -auto
Get-MailboxServer | Select Name,MessageTrackingLogEnabled | ft -auto

Here you can check the current Message Logging values. It also aids in determining which switches to set.

Get-MailboxServer YourServerName | fl messagetracking*

You should see something like this…

MessageTrackingLogEnabled : True
MessageTrackingLogMaxAge : 30.00:00:00
MessageTrackingLogMaxDirectorySize : 1000 MB (1,048,576,000 bytes)
MessageTrackingLogMaxFileSize : 10 MB (10,485,760 bytes)
MessageTrackingLogPath : C:\Program Files\Exchange\TransportRoles\Logs\MessageTracking
MessageTrackingLogSubjectLoggingEnabled : True

Change your values to something more useful. In my case, space was not an issue so I enabled logging for 365 days and allocated 10 GB for log files.

Set-TransportServer YourServerName -MessageTrackingLogMaxAge 365
Set-TransportServer YourServerName -MessageTrackingLogMaxDirectorySize 10000MB

This command spins through all your mailbox servers and reconnects all the uniquely identified but disconnected mailboxes in any one of the mailbox stores:

$Servers = Get-ExchangeServer
$Servers | `
  Where { $_.IsMailboxServer -Eq ‘$True’ } `
  | ForEach { Get-MailboxStatistics -Server $_.Name `
  | Where { $_.DisconnectDate -NotLike ” } `
  | ForEach { Connect-Mailbox -Identity `
    $_.DisplayName -Database $_.DatabaseName} }

Wondering how many log files are generated per server every minute? Quickly find out by typing:


Get-MailboxDatabase -Server $env:ComputerName | ?{ %{$_.DatabaseCopies | ?{$_.ReplayLagTime -ne [TimeSpan]::Zero -And $_
.HostServerName -eq $env:ComputerName} } } | %{ $count = 0; $MinT = [DateTime]::MaxValue; $MaxT = [DateTime]::MinValue;
Get-ChildItem -Path $_.LogFolderPath -Filter “*????.log” | %{ $count = $count + 1; if($_.LastWriteTime -gt $MaxT){ $MaxT
= $_.LastWriteTime}; if($_.LastWriteTime -lt $MinT){ $MinT= $_.LastWriteTime} }; ($count / ($MaxT.Subtract($MinT)).Tota
lMinutes) } | Measure-Object -Min -Max -Ave

How to Enable Users for Lync 2013

Login to the Lync URL

Single sign on will work for this


Click on Enable Users for Lync Server.


Click Add to add the user for enabling it.


Type the user logon name in search field and click find, select the required user and click ok.


Select pool server from the drop down from Pool list.


Select Enterprise Voice from the Telephony drop down list.


Click on the Enable to enable the user for lync.

Configure Outlook 2007 to work over HTTP using RPC protocol

To setup RPC over HTTP on windows XP using Outlook 2007 click on Start and then click on Control Panel then click on the Mail applet in control panel.

The mail setup window should show up:


Click on E-mail Accounts..Then click on Account Settings, click on New:


  1. The new E-mail Account Setup should come up. Select Microsoft Exchange, POP3, IMAP, or HTTP and click Next


Click on “Manually configure server settings or additional server type. then click Next:

Select Microsoft Exchange on the next screen. Click Next. On the next screen, enter the name of the exchange server, and the Username:


After you have entered the info, click on More Settings. Click on the Connection tab on the Microsoft Exchange window:


Check the dial box to connect to Microsoft Exchange using HTTP and then click on Exchange Proxy Settings.

The Microsoft Exchange Proxy Settings windows should come up:


Check Connect Using SSL only if your organization exchange server is configured for SSL socket using the 443 port. Otherwise uncheck it. Enter the information about your exchange server as the screen shot below:


After you have entered all the information, close out of all the windows, and restart Outlook 2007. Your Outlook 2007 should work from anywhere now.

How to setup a Blackberry Support user account

1. Login to BES console.

2. Expand Administrator users

3. Click Create an administrator user

4. Fill in the required fields: only use ADM accounts for Admin logins.

5. For Role: Select Senior helpdesk Administrator. Do not create an Enterprise admin account.

6. clip_image002

7. Enter your password in the Administrators password field.

8. Click > Create an administrator user.

9. Done.

How to Count Number of Mailboxes in Exchange 2010 Using Powershell

Command to count all type of mailboxes in Exchange Management Shell

Get-Mailbox -ResultSize Unlimited | measure-object

Command to count Specific type of mailboxes in Exchange Management Shell

Get-Mailbox -ResultSize Unlimited | where {$_.ResourceType -eq “Equipment”} | measure-object

Command to count mailboxes on a specific server in Exchange Management Shell

Get-Mailbox -ResultSize Unlimited | where {$_.ServerName -eq “SERVERNAME”} | measure-object