IntuneDeviceConfigurationEmailProfilePolicyWindows10¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| AccountName | Write | String | Account name. | |
| DurationOfEmailToSync | Write | String | Duration of email to sync. Possible values are: userDefined, oneDay, threeDays, oneWeek, twoWeeks, oneMonth, unlimited. | userDefined, oneDay, threeDays, oneWeek, twoWeeks, oneMonth, unlimited |
| EmailAddressSource | Write | String | Email attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. | userPrincipalName, primarySmtpAddress |
| EmailSyncSchedule | Write | String | Email sync schedule. Possible values are: userDefined, asMessagesArrive, manual, fifteenMinutes, thirtyMinutes, sixtyMinutes, basedOnMyUsage. | userDefined, asMessagesArrive, manual, fifteenMinutes, thirtyMinutes, sixtyMinutes, basedOnMyUsage |
| HostName | Write | String | Exchange location that (URL) that the native mail app connects to. | |
| RequireSsl | Write | Boolean | Indicates whether or not to use SSL. | |
| SyncCalendar | Write | Boolean | Whether or not to sync the calendar. | |
| SyncContacts | Write | Boolean | Whether or not to sync contacts. | |
| SyncTasks | Write | Boolean | Whether or not to sync tasks. | |
| CustomDomainName | Write | String | Custom domain name value used while generating an email profile before installing on the device. | |
| UserDomainNameSource | Write | String | UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: fullDomainName, netBiosDomainName. | fullDomainName, netBiosDomainName |
| UsernameAADSource | Write | String | Name of the AAD field, that will be used to retrieve UserName for email profile. Possible values are: userPrincipalName, primarySmtpAddress, samAccountName. | userPrincipalName, primarySmtpAddress, samAccountName |
| UsernameSource | Write | String | Username attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. | userPrincipalName, primarySmtpAddress |
| Description | Write | String | Admin provided description of the Device Configuration. | |
| DeviceManagementApplicabilityRuleDeviceMode | Write | MSFT_DeviceManagementApplicabilityRuleDeviceMode | The device mode applicability rule for this Policy. | |
| DeviceManagementApplicabilityRuleOsEdition | Write | MSFT_DeviceManagementApplicabilityRuleOsEdition | The OS edition applicability for this Policy. | |
| DeviceManagementApplicabilityRuleOsVersion | Write | MSFT_DeviceManagementApplicabilityRuleOsVersion | The OS version applicability rule for this Policy. | |
| DisplayName | Key | String | Admin provided name of the device configuration. | |
| Id | Write | String | The unique identifier for an entity. Read-only. | |
| RoleScopeTagIds | Write | String[] | List of Scope Tags for this Entity instance. | |
| Assignments | Write | MSFT_DeviceManagementConfigurationPolicyAssignments[] | Represents the assignment to the Intune policy. | |
| Ensure | Write | String | Present ensures the policy exists, absent ensures it is removed. | Present, Absent |
| Credential | Write | PSCredential | Credentials of the Admin | |
| ApplicationId | Write | String | Id of the Azure Active Directory application to authenticate with. | |
| TenantId | Write | String | Id of the Azure Active Directory tenant used for authentication. | |
| ApplicationSecret | Write | PSCredential | Secret of the Azure Active Directory tenant used for authentication. | |
| CertificateThumbprint | Write | String | Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication. | |
| CertificatePassword | Write | PSCredential | Username can be made up to anything but password will be used for CertificatePassword | |
| CertificatePath | Write | String | Path to certificate used in service principal usually a PFX file. | |
| ManagedIdentity | Write | Boolean | Managed ID being used for authentication. | |
| AccessTokens | Write | String[] | Access token used for authentication. |
Embedded Instances¶
MSFT_DeviceManagementApplicabilityRuleDeviceMode¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Name | Required | String | Name for object | |
| DeviceMode | Write | String | Applicability rule for device mode | standardConfiguration, sModeConfiguration |
| RuleType | Write | String | Applicability Rule type | include, exclude |
MSFT_DeviceManagementApplicabilityRuleOsEdition¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Name | Write | String | Name for object | |
| OsEditionTypes | Write | String[] | Applicability rule OS edition type | |
| RuleType | Write | String | Applicability Rule type | include, exclude |
MSFT_DeviceManagementApplicabilityRuleOsVersion¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Name | Write | String | Name for object | |
| MinOSVersion | Write | String | Min OS version for Applicability Rule | |
| MaxOSVersion | Write | String | Max OS version for Applicability Rule | |
| RuleType | Write | String | Applicability Rule type | include, exclude |
MSFT_DeviceManagementConfigurationPolicyAssignments¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| dataType | Required | String | The type of the target assignment. | #microsoft.graph.cloudPcManagementGroupAssignmentTarget, #microsoft.graph.groupAssignmentTarget, #microsoft.graph.allLicensedUsersAssignmentTarget, #microsoft.graph.allDevicesAssignmentTarget, #microsoft.graph.exclusionGroupAssignmentTarget, #microsoft.graph.configurationManagerCollectionAssignmentTarget |
| deviceAndAppManagementAssignmentFilterType | Write | String | The type of filter of the target assignment i.e. Exclude or Include. Possible values are:none, include, exclude. | none, include, exclude |
| deviceAndAppManagementAssignmentFilterId | Write | String | The Id of the filter for the target assignment. | |
| deviceAndAppManagementAssignmentFilterDisplayName | Write | String | The display name of the filter for the target assignment. | |
| groupId | Write | String | The group Id that is the target of the assignment. | |
| groupDisplayName | Write | String | The group Display Name that is the target of the assignment. | |
| collectionId | Write | String | The collection Id that is the target of the assignment.(ConfigMgr) |
Description¶
Intune Device Configuration Email Profile Policy for Windows10
Permissions¶
Graph¶
To authenticate with the Graph API, this resource requires the following permissions:
Delegated permissions¶
- Read
-
GroupMember.Read.All, DeviceManagementConfiguration.Read.All, DeviceManagementRBAC.Read.All
-
Update
- GroupMember.Read.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementRBAC.Read.All
Application permissions¶
- Read
-
GroupMember.Read.All, DeviceManagementConfiguration.Read.All, DeviceManagementRBAC.Read.All
-
Update
- GroupMember.Read.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementRBAC.Read.All
Examples¶
Example 1¶
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceConfigurationEmailProfilePolicyWindows10 'IntuneDeviceConfigurationEmailProfilePolicyWindows10-Example'
{
AccountName = "Contoso Mail";
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.groupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'Corporate Mailbox Users'
}
);
Description = "Configures the built-in Windows mail app for Exchange Online";
DeviceManagementApplicabilityRuleDeviceMode = MSFT_DeviceManagementApplicabilityRuleDeviceMode{
Name = "Standard configuration devices only"
DeviceMode = "standardConfiguration"
RuleType = "include"
};
DeviceManagementApplicabilityRuleOsEdition = MSFT_DeviceManagementApplicabilityRuleOsEdition{
Name = "Enterprise and Professional editions only"
OsEditionTypes = @("windows10Enterprise", "windows10Professional")
RuleType = "include"
};
DeviceManagementApplicabilityRuleOsVersion = MSFT_DeviceManagementApplicabilityRuleOsVersion{
Name = "Windows 10 22H2 through Windows 11 24H2"
MinOSVersion = "10.0.19045.0"
MaxOSVersion = "10.0.26100.9999"
RuleType = "include"
};
DisplayName = "Corporate Mail Profile";
DurationOfEmailToSync = "unlimited";
EmailAddressSource = "primarySmtpAddress";
EmailSyncSchedule = "fifteenMinutes";
Ensure = "Present";
HostName = "outlook.office365.com";
RequireSsl = $true;
RoleScopeTagIds = @("0");
SyncCalendar = $true;
SyncContacts = $true;
SyncTasks = $true;
UserDomainNameSource = "fullDomainName";
UsernameAADSource = "userPrincipalName";
UsernameSource = "userPrincipalName";
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Example 2¶
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceConfigurationEmailProfilePolicyWindows10 'IntuneDeviceConfigurationEmailProfilePolicyWindows10-Example'
{
AccountName = "Contoso Mail";
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.groupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'Corporate Mailbox Users'
}
);
Description = "Configures the built-in Windows mail app for Exchange Online mailboxes"; # Updated Property
DeviceManagementApplicabilityRuleDeviceMode = MSFT_DeviceManagementApplicabilityRuleDeviceMode{
Name = "Standard configuration devices only"
DeviceMode = "standardConfiguration"
RuleType = "include"
};
DeviceManagementApplicabilityRuleOsEdition = MSFT_DeviceManagementApplicabilityRuleOsEdition{
Name = "Enterprise and Professional editions only"
OsEditionTypes = @("windows10Enterprise", "windows10Professional")
RuleType = "include"
};
DeviceManagementApplicabilityRuleOsVersion = MSFT_DeviceManagementApplicabilityRuleOsVersion{
Name = "Windows 10 22H2 through Windows 11 24H2"
MinOSVersion = "10.0.19045.0"
MaxOSVersion = "10.0.26100.9999"
RuleType = "include"
};
DisplayName = "Corporate Mail Profile";
DurationOfEmailToSync = "unlimited";
EmailAddressSource = "primarySmtpAddress";
EmailSyncSchedule = "fifteenMinutes";
Ensure = "Present";
HostName = "outlook.office365.com";
RequireSsl = $true;
RoleScopeTagIds = @("0");
SyncCalendar = $true;
SyncContacts = $true;
SyncTasks = $true;
UserDomainNameSource = "fullDomainName";
UsernameAADSource = "userPrincipalName";
UsernameSource = "userPrincipalName";
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Example 3¶
This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.
Configuration Example
{
param
(
[Parameter()]
[System.String]
$ApplicationId,
[Parameter()]
[System.String]
$TenantId,
[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC
Node localhost
{
IntuneDeviceConfigurationEmailProfilePolicyWindows10 'IntuneDeviceConfigurationEmailProfilePolicyWindows10-Example'
{
DisplayName = "Corporate Mail Profile";
Ensure = "Absent";
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}