Remove-CMMdmEnrollmentManager

SYNOPSIS

Removes a Device Enrollment Manager.

SYNTAX

ByValue (Default)

Remove-CMMdmEnrollmentManager [-Force] -InputObject <IResultObject[]> [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

ById

Remove-CMMdmEnrollmentManager [-Force] -Id <Int32[]> [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-WhatIf] [-Confirm] [<CommonParameters>]

ByName

Remove-CMMdmEnrollmentManager [-Force] -Name <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-WhatIf] [-Confirm] [<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.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-Id

Specifies an array of Configuration Manager user IDs.

Type: Int32[]
Parameter Sets: ById
Aliases: Ids

Required: True
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[]
Parameter Sets: ByValue
Aliases: User, EnrollmentManager, Users, EnrollmentManagers

Required: True
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
Parameter Sets: ByName
Aliases: 

Required: True
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
Parameter Sets: (All)
Aliases: wi

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

NOTES

Add-CMMdmEnrollmentManager

Get-CMMdmEnrollmentManager

Get-CMUser