BPOS & Office 365

How to Add an extra email address to your O365 mailbox the right way

This blogpost describes how to add an extra email address on your O365 mailbox. Someone told me that when he tries to add an extra email address using the Office 365 admin partner he receives the following error :


The error says that this action (adding an extra email address) should be performed on the object in your on-premises organization. This means that your Active Directory is connected to Azure (O365). So extra email address should be added on the specific user properties and not directly using the Exchange admin interface. Your changes are automatically replicated to Azure.

Go to your domain controller and open dsa.msc (Active Directory Users and Computers) and go to the user you wish to provide an extra email address. Important : don’t search for this specific user, this way you don’t see all the properties later on. Also make sure that you have the advanced view enabled in dsa.msc, otherwise you won’t see the Attribute editor tab.


Open the properties of the specific user and select Attribute Editor and go to ProxyAddresses. Now you have the option to add an extra emailaddress, use the following Value : smtp:user@email.nl

Make sure that the @email.nl domain is registred correctly in O365.

(Thanks to Roelf Z for the comment)


How to show (export) all devices synchronizing with your Office 365

For a MDM project I had to make an dump which users are using which devices to (active)sync with their Office 365 mailboxes. This is how I did that :

Get-Mailbox -ResultSize Unlimited | ForEach {Get-MobileDeviceStatistics -Mailbox:$_.Identity} | Select-Object @{label=”User” ; expression={$_.Identity}},DeviceModel,DeviceOS, lastsuccesssync | Export-csv F:\powershell\activesync.csv

Running the above command showed the following output (in a CSV file format):

As you can see you see the user, the device the user is using, the OS their device uses and last time that devices succesfully synchronized.

I used Excel to import the CSV and sort on LastSuccessSync.

Find out here how to connect to Office 365 using Powershell.

Powershell: Start using PowerShell using PowerShell Command Builder

Microsoft TechNet site has a great site that enables you to build your own cmdlets using a web drag and drop interface.

There is support for :


Let’s try Office 365 :


You notice the drag and drop interface. First select the verb, for example Get. Click get and the send arrow. Now choose a Noun, for example Msol User:


After selecting the Verb and Noun you notice the other extra options. Fill them in when needed. Now hit the Copy to Clipboard button to copy the PowerShell command to your Clipboard and start using PowerShell to manage your Office 365.

You can find the site here.

Powershell: Connect to Azure Active Directory and Microsoft O365

Use the following Powershell script to connect to Azure Active Directory and Microsoft O365. This enables you to use all the O365 Powershell commands.



(Download the Powershell plugin here)

Office 365 : Disable Clutter (onbelangrijke mail) function

In this post I describe how to disable/enable the Clutter function of O365. The clutter feature is self learning and there are not many options you can specify. You can drag messages to and from the Clutter mailbox so that it can learn how to work. But sometimes you want do disable this function for specific mailboxes.

To disable Clutter for the entire organization you can use the following Powershell command:

Get-Mailbox | Set-Clutter -Enable $false

To disable Clutter for a single mailbox use the following command :

Set-Clutter -Identity helpdesk -Enable $false

To enable Clutter replace $false by $true



How to export an Exchange Mailbox to PST

Exchange 2010 SP1 and later doesn’t allow by default for any user to export a mailbox. You have to assign those rights to a specific user. Use the following command :



Now that we have an user with the appropriate rights, make sure you have the location ready where you wish to store the PST files. Make sure that this folder has read/write rights to the Exchange Trusted Subsystem :


Now export the mailbox to a PST with the following command:


Use the following command to show the progress



When the export has been completed, remove the mailbox from the old Exchange system using the following command:

Office 365 Enabling archiving

Use the following steps to enable archiving using Office 365.

Go to http://portal.office.com


Select administrator/beheerder. Go to the list of enabled users.

Select Exchange properties


Now the specified user has Archiving rights. So all data in the archive folder is not part of the 50 GB storage limitation. Let’s open Outlook Web Access and notice the Archive button:


When you select an email message you can easily archive that message. It will appear in the archive folder in your mailbox :


or when using Outlook:


Emailmessages are still enabled for indexing and search requests.

Powershell : How to identify (and delete) specific email messages from Office 365 1

I was looking for a way to identify messages in my Outlook Mailbox and easily delete them.

First connect to Office 365 with you (admin) credentials using the LiveCred command.

Set the Execution Policy and import the commandlets.

Using the next command creates an export of all emails from the specified user in the emailbox username and puts that export in the mailbox of user target mailbox and creates an folder called Searchlogs.


In that folder you find the logging of the files specified :



Open the zip file containing the CSV export.


When you are ready to delete those files use the following command :

Now all the files from the specified user are deleted. You can also use the -subject:’subjectname” switch.


How to publish a remoteapp (Azure)

In this article I describe how to publish a remoteapp using Microsoft Azure. First login to the Azure Portal using your (admin) creds and create a RemoteApp :


After you select the +NEW button use the following steps to create a RemoteApp:


Give a name, the region you wish the data to be stored and the plan details. Notice that by default there are 3 images to choose from. In this example who use the default available. In a later post I shall describe how to use your own images. After you click Create RemoteApp Collection, your RemoteApp Collection will be created. This can take a couple of minutes. When this task is finished you see something like this :


The name, status, address and other information is displayed. Double-click this bar.

You notice this screen:


You have several options : Dashboard (this page), User Access (control which users have access), Publishing (choose which applications to publish), Sessions (see the current sessions), Scale (scale your RemoteApp)

Click publish remoteapp programs!


Now you can choose from a list of programs installed in the image you choose before. Select any of them. You see the selected program being published. You can go to the publishing menu and you see al the Apps which are published as a RemoteApp.


It’s also an option to manually enter programs when you now the exact path or any one which is listed in the start menu. Ok! We are ready to go. Let’s download the Azure RemoteApp client here. After you have installed the client, let’s start the client! Login as the user you gave access to earlier. (users) and you see something like this :


Let’s start Visio for example :


The first time to application is set up (profile etc) and so it takes a bit langer to start the application.

Et voila Visio is started! You don’t see the difference between Visio installed locally or as a RemoteApp :