Set-CMIntuneSubscriptionAppleProperty

Updates a Microsoft Intune subscription to enable iOS and Mac OS X (MDM) enrollment.

Syntax

Set-CMIntuneSubscriptionAppleProperty
   [-Enable <Boolean>]
   [-ApnsCertificatePath <String>]
   [-ApnsCertificatePassword <SecureString>]
   [-CertificateExpiryAlertDays <Int32>]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMIntuneSubscriptionAppleProperty cmdlet updates the settings of a Microsoft Intune subscription to enable iOS and Mac OS X (MDM) enrollment.

Examples

Example 1: Enable iOS and Mac OS X (MDM) enrollment

PS C:\> Set-CMIntuneSubscriptionAppleProperty -Enable $True -ApnsCertificatePath "C:\Certs\test.pem" -ApnsCertificatePassword $null -CertificateExpiryAlertDays 30

This command enables iOS and Mac OS X (MDM) enrollment for the Microsoft Intune subscription.

Optional Parameters

-ApnsCertificatePassword

Specifies, as a secure string, the password for the APNs certificate.

Type:SecureString
Aliases:CertificatePassword
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApnsCertificatePath

Specifies the path to the Apple Push Notification service (APNs) certificate.

Type:String
Aliases:Path, CertificatePath
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CertificateExpiryAlertDays

Specifies the number of days before the APNs certificate expires to show an alert.

Type:Int32
Aliases:ApnsCertificateExpiryAlertDays
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
-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 iOS and Mac OS X (MDM) enrollment is enabled.

Type:Boolean
Aliases:Enabled, EnableIosEnrollment, EnableMacEnrollment, EnableMdmEnrollment
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