Some tools in Outlook 2013 for diagnosing Exchange connectivity issues

This content is 10 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I’ve just been looking at some of the diagnostic information that’s available for Outlook connections to Exchange (including Exchange Online in Office 365) and one “hidden” feature (actually, it’s not hidden but it’s not very well known) is the ability to Ctrl+right click on the Outlook icon in Windows’ notification area to bring up two extra menu options:

The first of these is handy for bringing up information about the various client-server connections open between Outlook and Exchange (for example the connection protocols being used, port numbers, session types, etc.):

The second allows testing/diagnosis of AutoDiscovery functionality – again, providing a host of information to track down issues:

Combined with the Microsoft Remote Connectivity Analyzer, these are a few tools to help IT admins track down the cause of connection issues.

Synchronisation with your WP8 failed for … items

This content is 10 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

For the last couple of days, I’ve been getting strange messages from our mail server telling me that

“Synchronization with your WP8 failed for 1 items.
Microsoft Exchange was unable to send the following items to your mobile device. These items have not been deleted. You should be able to access them using either Outlook or Outlook Web Access.”

I thought this was odd – why just this one appointment? And then the penny dropped.  I’d marked the item in my Calendar as “Working Elsewhere”.  This location wasn’t available in earlier versions of Outlook and presumably Windows Phone 8 (or Exchange Server 2007) didn’t know what to do with it, so stopped attempting to sync the item with apparently-invalid data.

Microsoft has always had a good/better/best model when it comes to functionality available when combining different versions of software. Our Exchange servers are due for an update but this may be something to watch out for with my combination (Windows Phone 8, Exchange Server 2007, Outlook 2013)…

Exchange support and cumulative updates

This content is 10 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Microsoft’s Support Lifecycle has been published for many years now – and most people are familiar with the concept of 5+5 support – i.e. 5 years mainstream support, followed by 5 years extended.  Some products (e.g. Windows XP) had a slightly longer period of support as they were introduced before the 5+5 policy but, as a rule, we can assume 10 year support for a product and be making plans to move up in the second half of that period.

It’s not quite that simple though – service packs need to be considered.  Often the support lifecycle has a note that says something like “Support ends 12 months after the next service pack releases or at the end of the product’s support lifecycle, whichever comes first.”.  That’s OK – service packs should be applied as part of regular maintenance anyway, so keeping up to date will keep you supported.  And, anyway, service packs only come along every year or two…

…until recently.

With the growth in Microsoft’s online services, for instance Exchange Online (sold under the Office 365 banner), we’re entering a period of cumulative updates.  New features and functionality are rolled out online, and then made available for “on premises” deployments.  Now, I’ve long since argued that new features and software fixes should be separate – but the world has moved on and we now see a cumulative update for Exchange Server every 3 months or so.

So, unlike the rollup updates (RUs) with previous versions of Exchange, Exchange 2013 cumulative updates (CUs) are effectively mini-service packs (CU4 was actually released as SP1).  And, critically, CUs go out of support 3 months after the next one comes out.  That means that we all need to get tighter on our application of CUs – and, because of the new features and functionality they introduce, that means testing too!

Exchange 2013 support gotcha!

My colleagues, Keith Robertson and Nick Parlow (@hagbard), recently highlighted a little anomaly that the Exchange CU support situation exposes in Microsoft’s documentation:

  • The Microsoft Support Lifecycle information for Exchange Server 2013 says that the RTM release (i.e. Exchange 2013 with no service packs or CUs applied) will no longer be supported from 14 April 2015. Except that’s not correct: CU1 was released on 1 April 2013 and so the RTM release actually went out of support on 2 July 2013!
  • Fast forward to Exchange 2013 SP1 (remember this was also known as CU4) and you’ll see it was released on 25 February 2014.  CU5 was released on 27 May 2014, so Exchange 2013 SP1 installations need to be updated to CU5 before 27 August 2014 in order to remain supported…

Microsoft’s Exchange Product Group has a blog post on Servicing Exchange 2013 but the key point is that Exchange Server installations need to be updated on a quarterly cadence, in line with new CU releases.  Added to that, be aware that custom configurations will be lost in the update so re-applying these will need to be factored into your plans – and that testing is critical – especially where third party applications are in use that Microsoft will almost certainly not have tested in their Exchange Online service.

Short takes: hosts files; C#; Azure VMs; sleuthing around Exchange; closing Windows 8 apps; and managing tabs in Google Chrome

This content is 10 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Another dump of my open browser tabs to the web…

Unable to edit hosts file in Windows

One of the tools (read Excel and lots of macros) that I use for financial forecasting said it couldn’t find a server.  Of course the network’s never broken – it must be the end users’s fault – so, faced with the prospect of telling an angry admin that there is a DNS mis-configuration, I decided to hack my hosts file instead…

Windows doesn’t make that easy (even as a local administrator) – so I ran Notepad as Administrator instead… being an old skool kind of command line guy it was an elevated cmd prompt  from Start, cmd, then shift and click (which dumps me into C:\Windows\System32), followed by the cd drivers/etc and notepad hosts commands.

What versions of C# are out there?

One thing I wanted to know whilst teaching myself to write in C# a few months back (i.e. to select a course that was up-to-date!) was which versions of C# are out there. Of course, Stack Overflow has the answer.

And, one day, I really must have a play with CShell, the open source C# read-eval-print-loop (REPL) IDE

What Microsoft server software is supported in an Azure VM?

Ever wondered what can be run up (and supported) in a Microsoft Azure VM? Quite a lot, but also some big omissions (Exchange, obviously) and some caveats (like no DHCP).  The formal list is in Microsoft knowledge base article 2721672.

Finding the Exchange Server that actually hosts my email

Exchange AutoDiscover means that, most of the time, end users don’t need to know where their email is – just the single address that lets the email client find the server – but several times recently I’ve found myself needing to know which server hosts my email.  One time I was diagnosing intermittent issues with out of office replies and access to colleagues’ calendars.  Another time I wanted to use PowerShell to list members of a distribution group programmatically (and later to rename a distribution group after the IT department said it wasn’t possible). Unfortunately, I didn’t have access to run PowerShell commands against our servers (but that’s probably a good thing)!

Anyway, it seems that the details I needed were available via Outlook Web Access:

  1. Logon to OWA
  2. Click options
  3. Click About
  4. And find the line that reads “Client access server name” – that’s your connection point.  There’s also a line for “Mailbox server name”.

I tested this with Exchange 2007.  It may vary for other releases and I haven’t checked.

By the way, a couple of links that looked hopeful for my distribution group issues (the ones I had to find another way to resolve):

Closing applications in Windows 8

Our family PC runs Windows 8.1 but, as my work PC runs Windows 7, I have to admit sometimes there are things I haven’t got used to.  One of those is closing full-screen apps.  I usually resort to Alt-F4 but if the kids have left the computer in touch format, then it seems that a simple top to bottom drag is what I need (there should also be a close button if I touch the top of the screen).

Managing tabs in Google Chrome

As I go through my work, I often come across things I’d like to go back to later, or leave side projects part-done, blog posts half-researched (and half-written), etc. Over time, they build up to hundreds of tabs and I my bookmarks folder is a plethora of In Progress yyyymmdd folders (another job to sort out one day).  It also means that, every now and again, my PC slows right down and I need to reboot because Google Chrome is using 14 gazillion GBs of RAM and a Flash plugin (probably serving ads on a website) has gone haywire again. Add Symantec EndPoint Prevention and BeCrypt DiskPrevent into the mix and a reboot could be a half-hour inconvenience.

Last night, I spent hours working through the various open tabs, closing some, pasting some to blog posts (this one… and others still work in progress) and I happened to post a little tweetette, to which Garry Martin (@GarryMartin) happened to respond:

Awesome indeed. Less than 5 seconds to install and the remaining handful of tabs are now under control.

Remote PowerShell to manage Exchange, even without the Exchange Management Shell installed

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Following on from yesterday’s Exchange Admin Center/Outlook Web App tips, I thought I’d share another gem that came from Microsoft Exchange Premier Field Engineer and PowerShell author Mike Pieffer (@mike_pfeiffer) in the Microsoft Virtual Academy Core Solutions of Microsoft Exchange Server 2013 Jump Start course.

Sometimes, you’ll need to perform an operation on an Exchange Server and you won’t have the Exchange Management Shell installed.  You may be able to carry out the operation graphically using the Exchange Admin Center but, more likely, you’ll need to invoke a remote PowerShell session.

The magic commands (which need PowerShell v2 or later) use implicit remoting via the IIS PowerShell virtual directory (proxied via an Exchange server with the CAS role installed):

$session = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri http://servername/powershell
Import-PSSession $session

After running these commands, you should be able to run Microsoft Exchange cmdlets, as long as you have the appropriate permissions assigned via Exchange’s Role Based Access Control mechanism. I’ve used the same approach previously to connect to Exchange Online (Office 365) using remote PowerShell.

A couple of additional points to note: because you’re running a remote PowerShell session, you’ll also need the script execution policy to allow RemoteSigned scripts; also, don’t forget to tear down the session when you’re done, using Remove-PSSession $session.

Customising the behaviour of Exchange 2013 web apps (ECP/EAC/OWA)

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I’ve been spending quite a bit of time refreshing my technical knowledge of Microsoft Exchange recently and, aside from the detail of how the product works, I came across a couple of little nuggets that could be useful for admins working with the product.

Force a connection to the Exchange 2013 Admin Center (EAC)

If your organisation is has a combination of Exchange 2013 and previous releases (2007/2010) and your mailbox is on an older version of Exchange then accessing https://servername/ecp will result in the CAS proxying your connection to the mailbox role on a legacy server. Exchange 2007 users will be presented with an error, whilst those who have their mailbox on Exchange 2010 will see the old (yellow) Exchange Control Panel (ECP) rather than the new (blue) Exchange Admin Center (EAC).  To force a connection to an Exchange 2013 server and access the EAC, add ?ExchClientVer=15 to the URI.

Change the view in Outlook Web App (OWA)

Outlook Web App (OWA) will try to detect the device that you’re using and format the display to match; however this can be over-ridden with a few additions to the URL:

  • ?layout=desktop is the standard 3 pane view.
  • ?layout=twide can be used to force into Touch Wide (2 pane mode).
  • ?layout=tnarrow will select Touch Narrow (single pane).

“Rogue” retention policies in Exchange Online after false positive junk mail is moved to the Inbox

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

My Office 365 tenant was recently upgraded to the “Wave 15” version of the service, meaning that my email is now hosted on Exchange 2013, rather than 2010 (Microsoft has provided an article that helps users to understand which version of the service they are on).

Unfortunately, since the upgrade, an awful lot of my legitimate email is getting trapped as junk.  After moving it back to the Inbox, I noticed that one of the items displayed a message about retention policies, highlighting that it would expire in 30 days.

I don’t use retention policies (with gigabytes of empty space in my mailbox I don’t need to), so I thought this was a little strange, until I realised that this was a side effect of having been previously flagged as junk, where there is a retention policy set to remove mail after a month.  I then found that the Managed Folder Assistant (which applies the retention policies) only runs every 7 days on Exchange Online but can be forced in PowerShell.

Sure enough, once I’d eventually managed to connect to Office 365 in PowerShell and run the Start-ManagedFolderAssistant -Identity mailboxalias command, the email was no longer flagged for expiry.

There’s more information on setting up and managing retention policies in Exchange Online with Windows PowerShell on the Outlook.com help pages.

Preparation notes for Microsoft exam 70-341: Core Solutions of Microsoft Exchange Server 2013

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I’ve got an exam tomorrow. I figured that, as I’m employed as a manager and not an administrator, my best chance at passing the Core Solutions of Microsoft Exchange Server 2013 (70-341) exam was to take the test soon after attending the training course. So, tomorrow morning at 10am, I’ll be in a Prometric test centre whilst the sun is shining outside…

I learn by writing, so what follows are my notes – a brain dump if you like but based purely on study – I’ve not seen the exam (or any practice tests) yet…

Fingers crossed, I’ll be fine.  If I do fail, it will be the first time I’ve had to re-take a Microsoft exam – here goes with the brain dump.

[Updated 2013/11/22 – after failing 70-341 twice and 70-342 once – so far – I’ve removed the content of this post as it’s clearly no help to anyone!]

Exchange and Outlook resource roundup

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I mentioned that I’ve been attending an Exchange Server 2013 training course, when I wrote earlier in the week about creating dynamic distribution groups using custom directory attributes.

Our course instructor, Annette Gill, has curated a number of resources and links on her website for Exchange (2007, 2010 and 2013), Windows Server 2008, and System Center Configuration Manager (SCCM 2007 and 2012).  Of particular  interest to me right now are the Exchange Server 2013 Resources and Exchange Server 2013 Miscellaneous Links.

I also found something else of note during one of the labs. I don’t really use Public Folders and I was struggling to get one to display in the Outlook client after I’d created it and given access to a user.  Outlook MVP Diane Poremsky’s reply to a TechNet Forum post gave me the answer – Ctrl+6 refreshed the folder list (I already had it open) and the Public Folder came into view.  Incidentally, a full list of Outlook keyboard shortcuts can be found on the Microsoft Office website (that list is for 2010, but should work for 2013 too).

There are more “tips and tricks for Windows, Office and whatever” on Diane’s website.


Finally, one of the Microsoft consultants currently working with my team is one of the joint authors for the Microsoft Exchange Server 2013: Design, Deploy and Deliver an Enterprise Messaging Solution book that’s due to be published next month. Exchange 2013 texts are a bit thin on the ground at the moment but this book has been written by some of the best authorities I know on the topic – especially when it comes to designing, deploying and delivering solutions.

Working with Exchange 2013 dynamic distribution groups based on custom directory attributes

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

I’m attending a training course this week (getting back up to speed with Exchange using the Core Solutions of Microsoft Exchange Server 2013 course) and I found that one of the labs wasn’t working. I probably missed a step somewhere and I wanted to verify a dynamic distribution group based on a custom attribute.

Back in the days when I was hands-on with Exchange, there was an Exchange-aware version of Active Directory Users and Computers (ADUC) to work with, but that disappeared in 2007.  These days, the solution is to open ADUC, enable the Advanced view and then look at the Attribute Editor. It took some searching but I found that what Exchange refers to as Custom Attribute 1-15 are actually known by the LDAP names of extensionAttribute1 (to 15) in Active Directory.

Once I’d edited extensionAttribute1 in the user object(s) to add the value the dynamic distribution group was looking for, they were picked up and mail flowed as expected.

One last point: whilst Exchange 2013 doesn’t allow a preview the contents of dynamic distribution groups within the Exchange Admin Center it is possible inside the Exchange Management Shell.

[Update: Custom attributes can also be set in EAC – under more options for mailbox properties – as well as in EMS, where the attribute is known as CustomAttribute1)]