Office 365: Convert Mailbox to Shared Mailbox after Cutover Migration

When performing a cut-over migration the Exchange attribute indicating that the mailbox was a shared mailbox is lost. To correct this I have done the following steps:

List out all of the shared mailboxes form my on-premises Exchange and export them into a CSV file.

Now prepare the CSV file with the list of user principal names of all mailboxes to be converted. Make sure the column header for the user principal names is “UserPrincipalName”

Now we run the following powershell script to change the mailbox type of all items in the CSV file.

Please note

Running Exchange Online Powershell commands / scripts requires you have had installed the Microsoft Online Service Sign-In Assistant, Windows Powershell, Windows Azure Active Directory Powershell

For more info:




Tech Short: Office365 – Convert select on-premises mailboxes to mail-enabled users

When you convert on-premises mailboxes to mail-enabled users (MEUs), the proxy addresses and other information from the Office 365 mailboxes are copied to the MEUs, which reside in Active Directory in your on-premises organization. These MEU properties enable the Directory Synchronization tool, to match each MEU with its corresponding cloud mailbox.

Using the steps provided here I was able to export a list of only user mailboxes and leaving out other mailbox types

Run the following PowerShell command:

The following full steps of what to do next can be found here: http://community.office365.com/en-us/w/exchange/835.cutover-exchange-migration-and-single-sign-on.aspx

Exchange 2013 – Delete all contents from mailbox

Using the following Exchange Management Shell command you can cleanup emails from a mailbox such as one used to catch spam emails:

You can also check the number of items in the mailbox by issues the following command:


How to Remove Users From the Office 365

The time may come to clean up. Here are steps I have taken

To delete the account for one or more users

  1. Sign in to Office 365 with your work or school account.
  2. Go to the Office 365 admin center.
  3. Go to Users > Active Users.
  4. Choose the names of the users that you want to delete, and then select DELETE Delete.
  5. In the confirmation box, select Yes.

Done; not so fast.  The deleted users is not fully gone yet. It takes 30 days after you have deleted the user for it to purge from Office 365.  However there is a way to do this faster

To delete, deleted users in Office 365

Connect to Exchange Online using the Windows Azure Powershell module.

To connect you enter the following cmdlet’s:

This will prompt you for your credentials and stores them within $msolcred.

Next we enter to connect using the stored credentials

Now that you are connected you can issue the following command to list deleted users

Display deleted user

To remove the deleted user

If you had multiple users, this method would work to remove all deleted users recycle bin


Tech Short: Convert a Mailbox, Exchange 2013

Here are some steps that worked for me in converting a user mailbox to a shared mailbox.

Info: You can convert the following mailboxes from one type to another

  • User mailbox to resource mailbox
  • Shared mailbox to user mailbox
  • Shared mailbox to resource mailbox
  • Resource mailbox to user mailbox
  • Resource mailbox to shared mailbox

Example reason why you might wan’t to do this:

You have a mailbox account with the name of  bookclub and are looking make it a shared account because its consuming a license. To address this we will convert it to a shared mailbox account by issues the following commands in the Exchange Management Shell


If you have multiple accounts, the following steps may apply to you


Please note the following csv document formatting:

Ref: http://technet.microsoft.com/en-us/library/jj710164%28v=exchg.150%29.aspx


Tech Short: List Mailbox Type of Account, Exchange 2013

Quick an simple power shell line to list a mailbox type in the Exchange 2013 environment


Additional info on RecipientTypeDetails enumeration can be located here

Tech Short: List all shared mailboxes, Exchange 2013

Quick an simple power shell line to list all shared mailboxes in your Exchange 2013 environment.


What’s a Shared Mailbox

A shared mailbox is a mailbox that multiple users can use to read and send email messages. Shared mailboxes can also be used to provide a common calendar, allowing multiple users to schedule and view vacation time or work shifts. ref: http://technet.microsoft.com/en-us/library/jj150498%28v=exchg.150%29.aspx

Tech Short: What is my Lync 2010 Server Version?

So you are looking to upgrade; or at best update to a CU and well the first question in your mind is; what version of Lync am I running.

This info can be obtained by the Lync Server Management Shell


Run the following command: Get-CsServerVersion and you now have your server version

As always, I hoped this helped



Azure Active Directory Module for Windows Powershell – How to Connect

I recently needed to use this and well; I’m learning as I go.

So one of the tasks I needed to do in O365 was to delete a user.  This required me to use Azure AD PowerShell.

Fist step was simple.  Install Windows Azure Active Directory Module for Windows PowerShell onto a system.

Next was to launch it.

Cool, I am in powershell!  But what next, how do I connect.

To connect you enter the following cmdlet’s:

which will prompt you for your credentials and stores them within $msolcred.

Next we enter

to connect using the stored credentials

That’s it.

For more info on Azure Powershell – http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/

Related FAQs:

How can I determine what version of AAD PowerShell I have?
You can run the get-item cmdlet to check the version of the DLL files of the module that you have currently installed:

Where can I find the latest version of AAD PowerShell?

The following fwlinks should always point to the most current version of AAD PowerShell
Azure Active Directory Module for Windows PowerShell (64-bit version) This link is external to TechNet Wiki. It will open in a new window.
Azure Active Directory Module for Windows PowerShell (32-bit version) This link is external to TechNet Wiki. It will open in a new window.

SharePoint 2013: Upgrade to Claims Based Authentication

Claims-based authentication is an essential component to enable the advanced functionality of SharePoint 2013.

To move classic-mode web applications from SharePoint 2010 Products to SharePoint 2013, you can convert them to claims-based web applications within SharePoint 2010 Products, and then migrate them to SharePoint 2013.

The procedures in this post will address the issue I had faced after upgrading to SharePoint 2013 from 2010.

Due to classic mode authentication being officially depreciated by Microsoft, the database needed to be updated to claims based authentication.

During my testing; I noticed many (if not all) users accounts had issued logging into sites which worked prior to the upgrade.  I was removing and re adding them to work around this issue ; which was very tedious.

Using the Convert-SPWebApplication PowerShell command simplified this task.

Here are the steps I took

Launched SharePoint 2013 Management Shell as Administrator

Enter the following commands

Convert-SPWebApplication -Identity <URL> -To Claims -RetainPermissions

Please note the <URL> is the http://address to your SharePoint 2013 site application. Example: http://corp.jermsmit.com

For more info check out: http://technet.microsoft.com/en-us/library/gg251985.aspx