Author Archives: feadmin

Powershell: Counting messages processed by a Receive Connector

Recently I was doing some testing with a new Exchange 2010 Receive Connector and wanted a method to check how many messages it was processing.  I came up with the following Powershell snippet that seems to work well. $i = 0 do { $now = get-date (Get-MessageTrackingLog -ResultSize unlimited -Start “11/10/2012 3:00PM” -End $now -Server… Read More: Powershell: Counting messages processed by a Receive Connector »

Powershell: Using the whenCreated attribute in LDAP Filters

It is sometimes helpful to be able to search for objects in AD by their creation date.  The whenCreated attribute is useful for this as it is a replicated attribute (i.e. is consistent across all DCs).  The challenge for using whenCreated in LDAP filters is the syntax.  The attribute uses the GeneralizedTime syntax to represent… Read More: Powershell: Using the whenCreated attribute in LDAP Filters »

Powershell script to import message classifications

If you are in a cross-forest mailbox migration scenario and use Exchange message classifications, this script might be useful to you.  If you plan to have the same message classifications in the target Exchange Organisation then you will want the classification IDs to match.  Without this, there is potential for the classification on migrated mail… Read More: Powershell script to import message classifications »

Powershell script to check for duplicate attribute values

Here’s a handy Powershell script to check for duplicate attribute values on AD objects.  Why is this useful?  Well, you might have provisioning systems that assign unique values (e.g. employeeID) to AD objects.  Things can start to go wrong if it turns out that more than one object has been assigned the same attribute value. … Read More: Powershell script to check for duplicate attribute values »