Exchange 2010 Tips

Just considering moving from blogger (http:\\llamait.blogspot.com)  to live.com as blogger’s editor is awful…and now live is on WordPress… not sure that’s any better…anyhoo…

  

1.       EMC Command logging. Want to see what EMC is going under the bonnet? In EMC, click any node except the top-level Exchange node, click View à View Exchange Management Shell Command Log… à Action à Start Command Logging. From now until you switch it off via the same method, anything you do in EMC will be logged. Most of the commands logged can then be used in EMS (most, not all – I found some Filter-* cmdlets that EMC uses that EMS doesn’t seem to expose.) This is really useful to build Powershell scripts as it gives you the right syntax without hunting the Internet.

 

 EMC Command log

2.       Property page ‘Show Exchange Management Shell Command’: In a similar vein, when you have a property box and make a change, look in the bottom left hand corner and a code-tip icon is presented – click this and you’ll see the code to be executed when you hit apply.

 

  

3.       Invoke-Expression:  If you build a command line from a string, you may find it executes perfectly from the command line, but when you run it in a script it fails – the exact problem I had was building a filter string (remember that –Filter is server side, whereas piping to {Where{… etc} is client side (or post-action) and therefore can be a lot slower). If you build your command, assign to a variable then run using Invoke-Expression, you may have more success – e.g. to import an email address from a CSV file then do a user lookup:

 

$reciplist= import-csv userbatch01.csv

foreach ($user in $reciplist){

$filterstring = “‘(EmailAddresses -like ”*” + $user.sourceaddress + “*”)'”

$cmd = “get-mailbox -filter $filterstring”

invoke-expression $cmd}

 

4.       Object is read only because it was created with a future version of Exchange: Had this whilst trying to remove a public folder database from 2007 when decommissioning a server. Others have had some luck in deleting via 2007 EMC or Remove-PublicFolderDatabase in EMC, but I had to delete via ADSIEdit – make sure all the replicas (including system folders) are across to a 2010 PF database first – as with anything involving ADSIEdit, this is a last resort action!

5.       Depending upon the state of your server, you’ll probably need some updates that (rather annoyingly) aren’t included in Exchange 2010 setup. I could also bitch about the fact that the links aren’t active in the setup dialog, the file transfer mechanism varies etc. etc. but I won’t. And because their Windows updates, putting them in the updates flder does nothing apparently… Anyhoo, here’s a list of requirements from a recent 2010 install on W2K8 RTM (not R2): (Windows 6.1 = W2k8R2 = Win7; Windows 6.0 = W2K8RTM = Vista)

·         Hub Transport Role Prerequisites

                                                               i.      This computer requires the update described in Microsoft Knowledge Base articles 977624 (http://support.microsoft.com/?kbid=977624). Without this update, the RMS features may stop working.

                                                             ii.      This computer requires the Microsoft Office 2010 Filter Packs. Please install the software from http://go.microsoft.com/fwlink/?LinkID=191548

·         Client Access Role Prerequisites

                                                               i.      Install hotfix Microsoft Knowledge Base article 982867 from http://code.msdn.microsoft.com/KB982867.

                                                             ii.      This computer requires the update described in Microsoft Knowledge Base article 979744 (http://go.microsoft.com/fwlink/?linkid=3052&kbid=979744). Please install the required update to proceed.

                                                            iii.      Install hotfix Microsoft Knowledge Base article 979917 from http://code.msdn.microsoft.com/KB979917.

                                                           iv.      This computer requires the update described in Microsoft Knowledge Base article 973136 (http://support.microsoft.com/kb/973136). Please install the required update to proceed.

                                                             v.      This computer requires the update described in Microsoft Knowledge Base articles 977624 (http://support.microsoft.com/?kbid=977624). Without this update, the RMS features may stop working.

                                                           vi.      This computer requires the update described in Microsoft Knowledge Base article KB977592 (http://go.microsoft.com/fwlink/?LinkId=194843). Without this update, the Outlook Anywhere feature may work unreliably.

·         Mailbox Role Prerequisites

                                                               i.      This computer requires the update described in Microsoft Knowledge Base articles 977624 (http://support.microsoft.com/?kbid=977624). Without this update, the RMS features may stop working.

                                                             ii.      This computer requires the Microsoft Office 2010 Filter Packs. Please install the software from http://go.microsoft.com/fwlink/?LinkID=191548

6.       Outlook via CAS – Great set of articles on msexchange.org by Henrik Walther at http://www.msexchange.org/articles_tutorials/exchange-server-2007/planning-architecture/uncovering-new-rpc-client-access-service-exchange-2010-part1.html

7.       EMTShooter: Problems with EMC/EMS?  Try this tool: http://msexchangeteam.com/archive/2010/12/07/457139.aspx. Needs to be run from an EMS command prompt started up by r-clicking and choosing ‘Run as administrator’. Hasn’t been much use t-shoot slow performance of tools for me, but I’m sure it’s good if you get errors…

Advertisements
This entry was posted in Exchange 2010. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s