Skip to main content

SYNOPSIS

Configures the MDM enrollment policy for Microsoft Entra ID.

SYNTAX

DESCRIPTION

This function enables or disables automatic MDM enrollment during device registration in Microsoft Entra ID.

EXAMPLES

EXAMPLE 1

Disables automatic MDM enrollment during device registration.

EXAMPLE 2

Enables automatic MDM enrollment during device registration.

PARAMETERS

-State

Specifies whether MDM enrollment should be enabled or disabled during registration.
  • ‘Enabled’ : Enables automatic MDM enrollment (sets isMdmEnrollmentDuringRegistrationDisabled to false)
  • ‘Disabled’ : Disables automatic MDM enrollment (sets isMdmEnrollmentDuringRegistrationDisabled to true)

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

-Confirm

Prompts you for confirmation before running the cmdlet.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Requires the following Microsoft Graph permissions:
  • Policy.ReadWrite.MobilityManagement
Connect-MgGraph -Scopes ‘Policy.ReadWrite.MobilityManagement’ https://ps365.clidsys.com/docs/commands/Set-IntuneAutoMDMEnrollmentPolicy