Add-CMMdmEnrollmentManager

Adds a Device Enrollment Manager.

Syntax

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

Description

The Add-CMMdmEnrollmentManager cmdlet adds a Device Enrollment Manager to the Microsoft Intune subscription.

Examples

Example 1: Add a device enrollment manager using the pipeline

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

This command gets the user object named User01 and uses the pipeline operator to pass the object to Add-CMMdmEnrollmentManager, which adds the user as a device enrollment manager.

Example 2: Add a device enrollment manager by name

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

This command adds the user named User02 as a device enrollment manager.

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. To obtain a user object, use the Get-CMUser 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
-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
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

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

Outputs

IResultObject#SMS_MDMDeviceEnrollmentManagers