Exchange – Removing Illegal Alias Characters using PowerShell

Monday, August 15, 2011

var addthis_config = {"data_track_clickback":true}; If you're in a mixed-mode environment with both Exchange 2003 and Exchange 2007/2010 you may have noticed this message when using the Get-* cmdlets in the Exchange Management Shell: WARNING: The object domin.com/Users/UserName has been corrupted, and it's in an inconsistent state. The following validation errors happened: WARNING: Property expression "xx xxx" isn't valid. Valid values are: Strings formed with characters from A to Z (uppercase or lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One...

Cmdlets and Parameters – Differences between Exchange 2007 and 2010

Tuesday, June 15, 2010

Exchange 2010 adds a lot of new commands to the Exchange Management Shell (EMS). In addition to the new commands, some commands were removed and some cmdlet parameters have changed. To find all the changes between the two versions of Exchange I put together a script that produces a collection of custom objects. By querying these objects you can find if a command or its parameters are new or removed. The changes are recorded in an XML file (compare.xml) which you can use to filter a specific command. To compare the changes I ran a script, on each...

How to modify email addresses with PowerShell 2.0

Wednesday, January 20, 2010

One of the most asked question across many PowerShell forums, by Exchange administrators, is how to modify email addresses for mailbox users. The most common used code to add new email address in Exchange 2007 is: PS > $mbx = Get-Mailbox shay PS > $mbx.EmailAddresses += “newAddress@domain.com” PS > Set-Mailbox -Identity $mbx –EmailAddresses $mbx.EmailAddresses With Windows PowerShell 2.0 and Exchange 2007 (and above, sorry guys no 2003 ) we can use the Update-List cmdlet to add,remove or replace email addresses in a middle of a pipeline. PS > Get-Mailbox shay | Select-Object -ExpandProperty EmailAddresses | ` ...
22 comments