Get-IntuneAutoMDMEnrollmentPolicy
SYNOPSIS
Retrieves the current MDM enrollment policy for Microsoft Entra ID.SYNTAX
DESCRIPTION
This function retrieves the current state of automatic MDM enrollment during device registration in Microsoft Entra ID.EXAMPLES
EXAMPLE 1
EXAMPLE 2
PARAMETERS
-AsObject
When specified, returns the complete policy object instead of just the state.CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.INPUTS
OUTPUTS
String - Returns ‘Enabled’ or ‘Disabled’ by default
PSObject - Returns full policy object when -AsObject is used Not documented.NOTES
Requires the following Microsoft Graph permissions:- Policy.Read.All