Monday, October 28, 2013

Checking if Office 365 wave 15 upgrade went OK

Last month a big customer of mine had a postponed wave 15 upgrade. After the upgrade we wanted to check if everything was upgraded to version 15 via the portal. Unfortunately this is not possible. However you can check it via powershell.

First of all you'll need to check if your Office 365 Organization (tenant) is upgraded properly. You can do this by connecting to the MSOL via the MSOL powershell module.

Check your tenant status


2.      Open Windows PowerShell (I prefer to do it from the runtime in a normal powershell session but you can also use the Windows Azure Active Directory Module for Windows Powershell directly)

3. Execute the following commands:

Import-Module MSOnline #for powershell v3 and v4 this step is not needed 

$cred = Get-Credential <global admin account Office 365>
Connect-MsolService -Credential $cred
(Get-MsolCompanyInformation).CompanyTags

You now should see that your tenant is version 15:



 Check your Exchange Online Organization status


The next step is to verify if Exchange online is upgraded to wave 15. For this you need to create a pssession to Exchange Online.
1.      From within the earlier created powershell session connect to Exchange online with the following commands:

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection

Import-PSSession $session

2.      Next get the organisation version with the following cmdlet:

 Get-OrganizationConfig | fl Name, Admindisplayversion, IsUpgradingOrganization

3.      You now should see the following information if your tenant is upgraded:

 

Note: If the AdminDisplayName says 15.0.* then your organization is upgraded.

Verifying mailbox version


The last step is verifying that all the mailboxes are upgraded properly to wave 15.

1.      Execute the following oneliner in the powershell session you created in the previous step:

Get-Mailbox -ResultSize unlimited | where {$_.MailboxRelease -ne "E15"}

            Note: This command retrieves all mailboxes that do not have the E15 mailbox version.

2.      If you do not get anything back you're all done :)