Set-CMIntuneSubscriptionAppleDepProperty

Updates a Microsoft Intune subscription to enable the Apple DEP.

Syntax

Set-CMIntuneSubscriptionAppleDepProperty
   [-Enable <Boolean>]
   [-DepTokenPath <String>]
   [-AppleId <String>]
   [-IntuneCredential <PSCredential>]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMIntuneSubscriptionAppleDepProperty cmdlet updates the settings of a Microsoft Intune subscription to enable the Apple Device Enrollment Program (DEP).

Examples

Example 1: Enable the Apple DEP

PS C:\> $SecPasswd = ConvertTo-SecureString "P@ssW0rD!" -AsPlainText -Force
PS C:\> $Creds = New-Object System.Management.Automation.PSCredential ("AccountName@CompanyName.onmicrosoft.com", $SecPasswd)
PS C:\> Set-CMIntuneSubscriptionAppleDepProperty -Enable $True -AppleId "AppleID01" -DepTokenPath "C:\tokens\DepToken.p7m" -IntuneCredential $Creds

The first command creates a secure password object and stores the object in the $SecPasswd variable.

The second command creates a PSCredential object containing a Microsoft Intune organizational account and the password stored in $SecPasswd. The command stores the object in the $Creds variable.

The last command enables the Apple Device Enrollment Program for the Microsoft Intune subscription.

Optional Parameters

-AppleId

Specifies an Apple ID.

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

Specifies the path to the Device Enrollment program (DEP) token.

Type:String
Position:Named
Default value:None
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
-Enable

Indicates whether the Apple Device Enrollment program is enabled.

Type:Boolean
Aliases:EnableDep, Enabled
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
-IntuneCredential

Specifies, as a PSCredential object, a Microsoft Intune organizational account and password.

Type:PSCredential
Aliases:Credentials, Credential
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