Add-CMMdmEnrollmentManager

Adds a Device Enrollment Manager.

Syntax

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

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
Required:True
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
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
Required:True
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
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
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IResultObject#SMS_MDMDeviceEnrollmentManagers