Archive for February, 2011

Unable to send IM to OCS 2007 R2 user

February 22, 2011 3 comments


Recently had a client who were unable to send IM’s after a LCS to OCS 2007 R2 upgrade.


users got “Joe Bloggs could not be reached and this message was not delivered” when starting a new IM conversation with certain users, although if that user started a conversation with them they were able to converse.


After installing the 2007 Resource kit and running a trace on “SIPStack” I saw the following error message;


"The application specified an invalid static forwarding url"


A Google (oh our trusty friend) showed up the following post;


In short this was right, only the “other” value was indeed a blank value. After I removed this (and waited for AD to replicate to the DC that OCS was looking at), IM’s worked.


Client has asked me to write a script to check AD users for this, so if I do I will post up here 🙂




After a user comment on this I decided to investigate more via ADSI edit.

If I add a “blank” (or space) value to the Other IP phone to a user via ADSI edit, it looks like this;



This doesn’t look too bad – however if I expand the property I can select the “first line” like such;



And sure enough, in the AD Users and Computers counterpart I can do the  same;



Removing this value (either via ADSI edit or AD UC) means I can no longer select this value whatsoever.

It also leaves the ADSI value as <not set> as can be seen below;




In short, if you are having this problem – make sure that the attribute is listed as <not set> in ADSI edit – anything other than this and it should be cleared down 🙂


Hope that helps! 🙂


PowerShell command to get top 10 Mailboxes sorted by Size

February 15, 2011 Leave a comment

Use the following script to get your top 10 “offenders” in terms of Mailbox size.


Get-Mailbox -database DB2 -ResultSize Unlimited| Get-MailboxStatistics | Sort-Object TotalItemSize -descending |Select-Object DisplayName,ItemCount,@{name="MailboxSize";exp={$_.totalitemsize}} -first 10


Change the database to reflect the database required, or remove “-database DB2” completely to get a result against all mailboxes.


Disclaimer : This has been tested against 2010, however the same command should work for 2007. If it doesn’t drop me a line and I’ll re-write.

Enable / Disable Circular Logging on all databases

February 15, 2011 3 comments

There are some cases where Circular logging can be helpful – when migrating a large amount of email in from another system for example.

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $true

However, remember to re-disable it when done;

Get-StorageGroup | Set-StorageGroup -CircularLoggingEnabled $false

The Information Store must be restarted for either of these changes to take place – if you have a DAG then bounce over the active copy to another server (and back if required) to do this.

As correctly pointed out be MB the above is 2007 shell not 2010 (my bad!!)

The below is 2010 shell instead;

Get-MailboxDatabase | Set-MailboxDatabase -CircularLoggingEnabled $true

Bizarrely I must have been thinking of 2010 when I wrote this as I clearly mention DAG’s

However both require an Information Store restart – failover usually achieves this just make sure to take all databases on that node over and if in doubt then restart the service 😀

Sorry guys!!!!

Static ARP on a Juniper EX4200

February 15, 2011 Leave a comment

Had a requirement from a customer to add in a static ARP address for a Exchange 2010 Cas Array (Multicast NLB) I had put in.


A bit (read:lot) of digging got me to the following;


set interfaces vlan.100 family inet address arp multicast-mac 03:bf:0a:01:1f:06</DIV< div>


Where vlan.100 is the vlan ID, family inet address the “Default Gateway” for that VLAN, is the NLB address and 03:bf:0a… is the MAC address of the NLB.


You can find this by opening the NLB configuration tool and selecting properties on any node, and selecting “Cluster Parameters” 🙂

Forcing a full re-seed of a Exchange 2010 DAG replica

February 15, 2011 Leave a comment

This can be done either using the EMC or EMS. However I advise to use EMS in this instance, as using the EMC will not give you a status bar (whereas using the EMS will).


Update-MailboxDatabaseCopy -Identity DB1\MBX1 – DeleteExistingFiles



DB1 is the name of the database

MBX1 is the name of the target server requiring a reseed


N.B “DeleteExistingFiles” forces Exchange to remove any existing copies of the database from the target server (MBX1) and can be omitted if the files have been removed manually.

Using the Exchange Management Shell to manage DAG membership

February 15, 2011 Leave a comment


Add-DatabaseAvailbilityGroupServer -Identity DAG1 -MailboxServer MBX1

Adds MBX1 to the DAG called “DAG1”

Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1

Removes MBX1 from the DAG called “DAG1”. Ensure there are no active mailbox copies on MBX1.

Error when upgrading the Schema for OCS 2007 R2 when LCS is deployed

February 9, 2011 Leave a comment

Got this error when going to run the Schema upgrade for OCS 2007 R2 in an LCS environment;

“You are about to upgrade a forest that is storing its Office Communications Server data in the system container in the root domain.  It is recommended that the data be moved to the configuration partition before upgrading the schema to ensure that network connectivity issues to the root domain does not affect system performance.  Once the schema has been upgraded to R2 it will not be possible to move the data.  Please see the deployment documentation for additional details.”


Use the tool/instructions found here;


You can download the tool referenced from;


NOTE: Lync needs to be fully shut down on ALL servers before proceeding with this