AnotherUCBlog > Exchange, S4B, O365

Share my findings in the Microsoft unified communication world

LYNC/SKYPE FOR BUSINESS – Powerpoint/Whiteboard/Poll not working

Hello all,

It has been a long time since I have not write a new post but that day I got a new issue.

On a fresh new Skype for Business environment, I had an issue with the Powerpoint sharing no more working (was working some days ago…).

So I started to check all my config and check what changes I have done since it is no more working, I haven’t found something related to this issue.

So I used fiddler to check what is happening on the client side and see that the client never tried to reach the Office Web App server so I understood that the error was between the Lync/S4B client and the front-end.

Then I saw that article ->

And remember that the admin installed some updates in the last days.

So I followed the MS article ->

In my case, the key “HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\v4.0.30319\System.Net.ServicePointManager.SchSendAuxRecord” wasn’t existing on my front-end so I created it and created the DWORD value. I restarted the RCTDATAMCU and after restarting my S4B client, the powerpoint sharing worked again !!!!!

I would like to thanks Tom for his help.



O365 – PST Import \ Make AzCopy use a proxy

Hello folks,

In order to perform your PST import or just upload files to the Azure storage through a proxy, AzCopy can be configured to use it by following this :

  1. Go to the directory where AzCopy is installed (for me it is : “C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\”
  2. Create a new file called “azcopy.exe.config” and edit it with the following :


Then AzCopy will use the proxy mentionned on the field “ProxyAddress” and bypass it for local ressources.

Have a good day ^^

O365 EXCHANGE – Powershell connexion to Exchange Online and Exchange On-Premise in the same console

Hello everybody,

Today I had to make a script to compare the Distribution group members between our on-premise environment and the cloud to bee sure that they all are consistent.

The problem I ran into was that the powershell command to get the group members (Get-DistributionGroup) is the same on local Exchange and Exchange Online, so I had to connect/disconnect from each one each time I parse a new Distribution Group, which is taking time and resources…

After some search, I found that in the command “Import-PSSession” use to connect the Exchange (cloud and on-prem) environment, you can use the parameter “prefix” which will be used to make the difference between the on-premise commands and cloud commands.

A bit difficult to explain, here is an example :

Here is how you will create the connection :

# Exchange Online connexion
$ExchangeOnlineSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential (Get-Credential) -Authentication Basic -AllowRedirection -ea stop
Import-PSSession $ExchangeOnlineSession -AllowClobber -Prefix “Cloud” -ea stop

# Exchange On-prem connexion
$LocalExchangSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “http://$ExchangeServer/powershell/&#8221; -Credential (Get-Credential) -Authentication Kerberos -ea stop
Import-PSSession $LocalExchangSession -AllowClobber -Prefix “Local” -ea stop
Set-LocalAdServerSettings -ViewEntireForest $True -ea stop

Now if you want to get the list of mailboxes in the cloud, you have to type this :


If you want to get the list of mailboxes in your local environment, just type this :


Easy !!!

This, decrease my script time execution from 35 min to less than 5 minutes !

Enjoy 😉

O365 EXCHANGE – AutoArchive to pst and Online/in-Place archive

Hello everybody,

You maybe never pay attention of it but when you enable the online or in-place archive and assign a retention policy that move emails older than a certain date to a mailbox. The AutoArchive to pst feature of Outlook (at least 2010 version) disappear (You cannot turn it on but also cannot turn it off (graphically only)).

If this feature is still displayed even an archive is enabled on the account, check the following things :

  1. Ensure that you assign a retention policy that automatically move items to the archive
  2. Ensure that the retention policy has been applied by the MRM process. To verify, follow this :
    1. Open OWA with the intended account
    2. Click on the gear (up – right) and select options
    3. In the “mail” section, select “retention policies”
    4. You should get something like this :


If it is empty then the MRM process did not yet apply the retention policy. you can force it by launching the powershell command “Start-ManagedFolderAssistant”.

Also ensure that you have “Default Archive” retention policy tag, if it is not the case, you need to correct your retention policy.


O365 – Assign permissions to access O365 Audit log report

Hello all,

Following the article on this new feature, you maybe now want to give access to someone to it and only to it.

This cannot be done via the permissions part of the compliance center, it is indeed in the Exchange Online RBAC permissions.

The cmdlet Search-UnifiedAuditLog is part of the Exchange Online cmdlets.

To give users ability to use that cmdlet you need to assign them the role “View-Only Audit Logs”. Then those users will have to go to “; and they will be able to perform their search.

Have a good day 🙂

O365 – O365 Audit log report (License change report)

Hi all,

If I say that you can now audit and get reports of modifications done in O365 like licenses modification ! That would be great, isn’t it ? This is now the case, thanks to the feature called “O365 Audit log report”.


By default, this feature is turned off, to enable it, follow this steps :

  1. Log on the O365 portal
  2. On the left pane, click on Compliance
  3. The Compliance Center should open
  4. Go to Reports and in the part Auditing, click on “Office 365 audit log report”
  5. The “Audit log search” page appear and you can now turn on the feature by clicking on the “Start recording user and admin activities” button.

This should take around 2 hours to be effective.

Now to search for any modification done on licenses :

  1. Enter a start date and an end date
  2. If you want to trigger any modification done by an admin, fill the “User” field
  3. Launch the Search
  4. And here is the result : LicenseAudit
  5. You can now use the filter on the item column in order to check modification done on a particular user.

This audit and report feature can also be used for Exchange Online and Sharepoint reporting like modification done a document hosted in a personal Onedrive storage.


The picture show modifications done on an excel file hosted in Onedrive, one modification has been done by an internal user and the other has been done by an external user.

You can audit the following solutions :

  • User activity in SharePoint Online and OneDrive for Business
  • User activity in Exchange Online (Exchange mailbox audit logging)
  • Admin activity in SharePoint Online
  • Admin activity in Azure Active Directory (the directory service for Office 365)
  • Admin activity in Exchange Online (Exchange admin audit logging)

Just to let you know :

  • You can search the Office 365 audit log for activities that were performed within the last 90 days.
  • It takes up to 15 minutes after an event occurs in SharePoint Online or OneDrive for Business for the corresponding audit log entry to be displayed. It takes up to 12 hours for events in Exchange Online and Azure Active Directory.

You can also perform your search using Powershell with the Search-UnifiedAuditLog cmdlet (

You can get more information regarding this feature on this page

En joy 🙂

O365 HYBRID – Auto archive to pst missing after migration

Hi all,

The Auto Archive feature of Outlook is a feature which create a pst file and move automatically items that are older than a number of days you configured into that pst file.


When migrating a user to Exchange online with the online archive enabled, the auto archive to pst feature of Outlook disappear from the Outlook options but the feature is still enabled and you cannot turn it off anymore.

Which means that no matter the user is having an online archive, the pst file will continue to grow…

In order to turn it off, you can do it via a modification in the registry : HKCU\Software\Microsoft\Office\<OutlookVersion>\Outlook\Preferences\DoAging

This value is set to 1 when auto archive is set up. To turn it off, just set it to 0. You can do it via GPO if you want.

Office 365 – Get-MoveRequestStatistics returns Mailbox ” is not currently being moved.

Hi all,

Today I faced an issue when performing a move request from our On-premise Exchange to Office 365.

The move request launched successfully but when I wanted to get the status of the migration with the command “Get-MoveRequestStatistics”, it returns me “Mailbox mailboxName is not currently being moved.”


Launching a “Get-MoveRequest” says that the migration status is “In Progress” but impossible to get a detailed status so impossible to know if I can launch the completion of the migration.

I did some search on Google and found an article in the technet ( talking about this issue but I have not been able to use the workaround proposed… It seems to be an issue when the mailbox is moved between databases in the cloud during the migration.

The only way I found was to  delete the move request with the command “Remove-MoveRequest” and relaunch it.

Office 365 – Import PST

Hi Guys,

Today, I have started to use the new “PST import” process for O365. It is much quicker and reliable than using Outlook.

Here is how to use it :

  1. Install Azure tools
  2. Get credentials to connect to your Azure storage
    1. Connect to the O365 portal admin
    2. On the left click on the “IMPORT” button
    3. Click on the Key
    4. A new window called “Secure key and URL” open
    5. Select the button “Copy the key” and “Copy the secure network upload URL”
    6. These are your credentials to connect to your azure storage (never share the key).
  3. Upload your pst to Azure
    1. Launch a powershell console
    2. Go to C:\Program Files(x86)\Microsoft SDKs\Azure\Azcopy
    3. Launch the command : “.\Azcopy.exe /source:SharePathToPSTFiles /dest:SecureNetworkUploadURL/Folder/ /destkey:Key /S /V:LogFilePath\Logfile.log
  4. Upload your pst file from Azure to the mailbox or the archive
    1. Start the tool called “Azure Storage Explorer”, this tool give you a view of your azure storage
    2. Click on “Add Account”
    3. A new window open,
      1. Let “Cloud Storage Account” ticked
      2. Enter your account name which is the part between “https://&#8221; and “” of your destination URL. In my case, it is : “ee33215c499641ac8362756”
      3. Enter your “storage account key” which is the secure key. In my case, it is : “v9s7HzoABZPJxBZFAzeWMSrTZmra80ZERVIMfX8Xa0WTUEHw0joyHpyt+aIElBskG2UZ+N7N/4Jm4+nuJ7MRZf==”
      4. Let “Microsoft Azure Default” ticked
      5. Let the “Storage endpoints domain” set to “”
      6. Tick “Use HTTPS”
      7. Click on “Test Access” and if successful, click on “Save”
      8. You’re now connected to your azure storage
    4. Select the pst file you want to upload and click on “Security” on the left
    5. Go to “Shared Access signatures” tab and click on “Generate Signature”
    6. Copy what is below the “?” character and start by “sv=”. In my case, it is : “sv=2014-02-14&sr=c&sig=k5uDAdKOgPb0COzS9BWTT%2F9PjSP5c2M%2BQoXJwRVPeOQ%3D&st=2015-12-21T23%3A00%3A00Z&se=2015-12-29T23%3A00%3A00Z&sp=r” (this signature is valid for all items in this Blob)
    7. Launch a PowerShell console, connect to Exchange Online and type the following command : “New-MailboxImportRequest -Mailbox TargetMailboxIdentity -AzureBlobStorageAccountUri ‘https://SecureNetworkUploadURL/Folder/PSTFileName.pst‘ -AzureSharedAccessSignatureToken FileSignature -Name “Folder/PSTFileName.pst” -TargetRootFolder “/” -BatchName “MigrationBatchName” -BadItemLimit 50
      • If you want to upload the PST to the online archive of the user, add the parameter “-IsArchive”.
      • If you want to upload the pst into a special folder, set the parameter “TargetRootFolder” with the folder path (Like “Archive_2011”).
      • A complete example : “New-MailboxImportRequest -Mailbox -AzureBlobStorageAccountUri ‘; -AzureSharedAccessSignatureToken “sv=2014-02-14&sr=c&sig=k5uDAdKOgPb0COzS9BWTT%2F9PjSP5c2M%2BQoXJwRVPeOQ%3D&st=2015-12-21T23%3A00%3A00Z&se=2015-12-29T23%3A00%3A00Z&sp=r” -Name “Nigel/NigelSmith_mailbox.pst” -TargetRootFolder “/” -BatchName “NigelMigration” -BadItemLimit 50″
  5. Then you can run the command “Get-MailboxImportRequest -BatchName NigelMigration | Get-MailboxImportRequestStatistics” to get the status of your batch.

If a folder with the same name exist, the process will merge and not create duplicates.

It is not as easy as it was with an on-prem Exchange but it is good that Microsoft proposed this workaround.

Enjoy 🙂

Create a free website or blog at

Up ↑