How does OneDrive for Business synchronize files?

One pager, provided by Microsoft, about the OneDrive for business client. It is using an installed Office application (2016 or newer) to synchronize Office files and it uses the Background Intelligent Transfer Service (BITS) for larger files.

How does OneDrive for Business synchronize files?


Add choice to choice field in SharePoint Online

To add a new choice value to an existing choice field in SharePoint Online, this small PowerShell code snippet could be used. To run the script, a connection to the SharePoint site must be established and the PowerShell PnP Extensions must be available on the computer. Then we can use this simple code (remember to use another fieldname 😉 ).

Run Rest call against SharePoint Online from PowerShell

To run a Rest call against SharePoint Online from PowerShell, we can use this simple script, inspired from

All you need to do first is, install the SharePoint Online Client components or the SharePoint Online PowerShell extensions and copy the files Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll to the same directory as the script below.

A sample could look like this: .\RestAgainstSharePointOnline.ps1 -Url https://{yourtenant} -UserName {youruser} -Password {yourpassword}

Make Microsoft Teams Team Visible in Outlook

By default, when a new team is created in Microsoft Teams, this team is not visible in Outlook, even when the team has an underlying group. Additionally the team is not shown in the address list, when you want to add a recipient for an email. The reason for this is that the properties HiddenFromExchangeClientsEnabled and HiddenFromAddressListsEnabled are set to true, when the group for the team is created.

To make the team visible in Outlook we can use some PowerShell. First we need to connect to Exchange Online. Here is a simple script to do this connection:

When that is done, we just have one single line of code to run, to make the team visible in Outlook:

Set-UnifiedGroup -Identity MyTeam -HiddenFromExchangeClientsEnabled:$False

Now, you can discover the group for the team in Outlook/Outlook Online.

Remove NuGet packages from local machine

When working in Visual Studio and downloading packages from NuGet to the projects, a copy of these packages is stored on the local machine. When using virtual machines for development, like I do, the free space on the harddisk minimizes by time.

To remove these packages, we can use the NuGet.exe tool (see

So first run

.\nuget.exe locals all -list

And with the output run

.\nuget.exe locals {section} -clear


Deployment to Azure Web App by PowerShell

The deployment to a web app to Azure could be done in a few simple steps.

  1. download the publishsettings-file from the Azure Web App
  2. define the publish profile in Visual Studio for generating a publishing package
  3. when necessary, define web.config transformations (Microsoft MSDN)
  4. Create the publishing package
  5. use the PowerShell script below to deploy the package to the Azure Web App

Office 365 – Get Group Owners

The following script will list all owners of an Office 365 Group. The same script could be used to get the owners of an Office 365 Teams team. The script connects to Exchange Online, so proper permissions are necessary.