IntuneDeviceConfigurationCustomPolicyWindows10¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| DisplayName | Key | String | Admin provided name of the device configuration. | |
| OmaSettings | Write | MSFT_MicrosoftGraphomaSetting[] | OMA settings. This collection can contain a maximum of 1000 elements. | |
| 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. | |
| RoleScopeTagIds | Write | String[] | List of Scope Tags for this Entity instance. | |
| Id | Write | String | The unique identifier for an entity. Read-only. | |
| 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_MicrosoftGraphomaSetting¶
Parameters¶
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| Description | Write | String | Description. | |
| DisplayName | Write | String | Display Name. | |
| IsEncrypted | Write | Boolean | Indicates whether the value field is encrypted. This property is read-only. | |
| OmaUri | Write | String | OMA. | |
| SecretReferenceValueId | Write | String | ReferenceId for looking up secret for decryption. This property is read-only. | |
| FileName | Write | String | File name associated with the Value property (.cer) | |
| Value | Write | String | Value. (Base64 encoded string) | |
| IsReadOnly | Write | Boolean | By setting to true, the CSP (configuration service provider) specified in the OMA-URI will perform a get, instead of set | |
| odataType | Write | String | The type of the entity. | #microsoft.graph.omaSettingBase64, #microsoft.graph.omaSettingBoolean, #microsoft.graph.omaSettingDateTime, #microsoft.graph.omaSettingFloatingPoint, #microsoft.graph.omaSettingInteger, #microsoft.graph.omaSettingString, #microsoft.graph.omaSettingStringXml |
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 Custom Policy for Windows10
Permissions¶
Graph¶
To authenticate with the Graph API, this resource requires the following permissions:
Delegated permissions¶
- Read
-
GroupMember.Read.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementRBAC.Read.All
-
Update
- GroupMember.Read.All, DeviceManagementConfiguration.ReadWrite.All, DeviceManagementRBAC.Read.All
Application permissions¶
- Read
-
GroupMember.Read.All, DeviceManagementConfiguration.ReadWrite.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
{
IntuneDeviceConfigurationCustomPolicyWindows10 'IntuneDeviceConfigurationCustomPolicyWindows10-Example'
{
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.groupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'Corporate Windows Devices'
}
);
Description = "Hardens Bluetooth and trusts the internal certificate authority through OMA-URI settings";
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 = "Windows OMA-URI Baseline";
Ensure = "Present";
OmaSettings = @(
MSFT_MicrosoftGraphomaSetting{
Description = 'Limits Bluetooth to the audio and human interface services'
DisplayName = 'Bluetooth services allowed list'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/Policy/Config/Bluetooth/ServicesAllowedList'
Value = '{0000110b-0000-1000-8000-00805f9b34fb};{00001812-0000-1000-8000-00805f9b34fb}'
odataType = '#microsoft.graph.omaSettingString'
}
MSFT_MicrosoftGraphomaSetting{
Description = 'Prevents devices from being discoverable over Bluetooth'
DisplayName = 'Bluetooth discoverable mode'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/Policy/Config/Bluetooth/AllowDiscoverableMode'
Value = 0
odataType = '#microsoft.graph.omaSettingInteger'
}
MSFT_MicrosoftGraphomaSetting{
Description = 'Installs the internal issuing certificate authority in the device root store'
DisplayName = 'Internal root certificate'
FileName = 'contoso-root-ca.cer'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/RootCATrustedCertificates/Root/8f43288ad272f3103b6fb1428485ea3014c0bcfe/EncodedCertificate'
Value = '<base64-encoded-root-certificate>'
odataType = '#microsoft.graph.omaSettingBase64'
}
);
RoleScopeTagIds = @("0");
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
{
IntuneDeviceConfigurationCustomPolicyWindows10 'IntuneDeviceConfigurationCustomPolicyWindows10-Example'
{
Assignments = @(
MSFT_DeviceManagementConfigurationPolicyAssignments{
dataType = '#microsoft.graph.groupAssignmentTarget'
deviceAndAppManagementAssignmentFilterType = 'none'
groupDisplayName = 'Corporate Windows Devices'
}
);
Description = "Hardens Bluetooth and trusts the internal certificate authority through OMA-URI settings";
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 = "Windows OMA-URI Baseline";
Ensure = "Present";
OmaSettings = @(
MSFT_MicrosoftGraphomaSetting{
Description = 'Limits Bluetooth to the audio and human interface services'
DisplayName = 'Bluetooth services allowed list'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/Policy/Config/Bluetooth/ServicesAllowedList'
Value = '{0000110b-0000-1000-8000-00805f9b34fb};{00001812-0000-1000-8000-00805f9b34fb}'
odataType = '#microsoft.graph.omaSettingString'
}
MSFT_MicrosoftGraphomaSetting{
Description = 'Prevents laptops and tablets from being discoverable over Bluetooth' # Updated Property
DisplayName = 'Bluetooth discoverable mode'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/Policy/Config/Bluetooth/AllowDiscoverableMode'
Value = 0
odataType = '#microsoft.graph.omaSettingInteger'
}
MSFT_MicrosoftGraphomaSetting{
Description = 'Installs the internal issuing certificate authority in the device root store'
DisplayName = 'Internal root certificate'
FileName = 'contoso-root-ca.cer'
IsEncrypted = $false
IsReadOnly = $false
OmaUri = './Device/Vendor/MSFT/RootCATrustedCertificates/Root/8f43288ad272f3103b6fb1428485ea3014c0bcfe/EncodedCertificate'
Value = '<base64-encoded-root-certificate>'
odataType = '#microsoft.graph.omaSettingBase64'
}
);
RoleScopeTagIds = @("0");
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
{
IntuneDeviceConfigurationCustomPolicyWindows10 'IntuneDeviceConfigurationCustomPolicyWindows10-Example'
{
DisplayName = "Windows OMA-URI Baseline";
Ensure = "Absent";
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}