Microsoft 365

Azure AD: How to set Maximum Devices per User

The default value of the maximum number of devices per user in Azure AD is 50 devices. That is a lot. If you want to restrict the number of devices then you came to the right place. In this blog post I will show you how to do this with PowerShell. Let’s dive in.

Prerequisites

In order to set the maximum value we need to connect to Azure AD. First, if not already done, install the MSOnline Module and connect to your tenant.

Install-Module MSOnline
Connect-MsolService

Nice.

Set Maximum Devices per User

To retrieve the current maximum value, run the line below.

Get-MsolDeviceRegistrationServicePolicy

We learn that the maximum devices per user is set to 50. Let’s change this setting to 10.

Set-MsolDeviceRegistrationServicePolicy -MaximumDevicesPerUser 50

How do we know this worked?

Get-MsolDeviceRegistrationServicePolicy

Mission accomplished.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.