> ## Documentation Index
> Fetch the complete documentation index at: https://ps365.clidsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get-IntuneAutoMDMEnrollmentPolicy

## SYNOPSIS

Retrieves the current MDM enrollment policy for Microsoft Entra ID.

## SYNTAX

```powershell theme={null}
Get-IntuneAutoMDMEnrollmentPolicy [-AsObject] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION

This function retrieves the current state of automatic MDM enrollment during device
registration in Microsoft Entra ID.

## EXAMPLES

### EXAMPLE 1

```powershell theme={null}
Get-IntuneAutoMDMEnrollmentPolicy
```

Retrieves the current MDM enrollment policy state (Enabled/Disabled).

### EXAMPLE 2

```powershell theme={null}
Get-IntuneAutoMDMEnrollmentPolicy -AsObject
```

Retrieves the complete policy object from Microsoft Graph.

## PARAMETERS

### -AsObject

When specified, returns the complete policy object instead of just the state.

```yaml theme={null}
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

### String - Returns 'Enabled' or 'Disabled' by default

### PSObject - Returns full policy object when -AsObject is used

## NOTES

Requires the following Microsoft Graph permissions:

* Policy.Read.All

Connect-MgGraph -Scopes 'Policy.Read.All'

## RELATED LINKS

[https://ps365.clidsys.com/docs/commands/Get-IntuneAutoMDMEnrollmentPolicy](https://ps365.clidsys.com/docs/commands/Get-IntuneAutoMDMEnrollmentPolicy)
