Remove-​CM​Mdm​Enrollment​Manager

Removes a Device Enrollment Manager.

Syntax

Remove-CMMdmEnrollmentManager
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -Id <Int32[]>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMMdmEnrollmentManager
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -InputObject <IResultObject[]>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMMdmEnrollmentManager
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -Name <String>
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-CMMdmEnrollmentManager cmdlet removes a Device Enrollment Manager from the Microsoft Intune subscription.

Examples

Example 1: Remove a device enrollment manager using the pipeline

PS C:\> Get-CMUser -Name "Contoso\User01"| Remove-CMMdmEnrollmentManager

This command gets the user object named User01 and uses the pipeline operator to pass the object to Remove-CMMdmEnrollmentManager, which removes the device enrollment manager.

Example 2: Remove a device enrollment manager by name

PS C:\> Remove-CMMdmEnrollmentManager -Name "Contoso\User02"

This command removes the device enrollment manager named User02.

Required Parameters

-Id

Specifies an array of Configuration Manager user IDs.

Type:Int32[]
Aliases:Ids
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies an array of user objects or Device Enrollment Manager objects. To obtain a user object, use the Get-CMUser cmdlet. To obtain a Device Enrollment Manager user object, use the Get-CMMdmEnrollmentManager cmdlet.

Type:IResultObject[]
Aliases:User, EnrollmentManager, Users, EnrollmentManagers
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies the name of a Configuration Manager user.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False