Skip to content

IntuneDeviceConfigurationWiredNetworkPolicyMacOS

Parameters

Parameter Attribute DataType Description Allowed Values
Assignments Write MSFT_DeviceManagementConfigurationPolicyAssignments[] Represents the assignment to the Intune policy.
AuthenticationMethod Write String Authentication Method when EAP Type is configured to PEAP or EAP-TTLS. Possible values are: certificate, usernameAndPassword, derivedCredential. certificate, usernameAndPassword, derivedCredential
DeploymentChannel Write String Indicates the deployment channel type used to deploy the configuration profile. Possible values are deviceChannel, userChannel. Possible values are: deviceChannel, userChannel, unknownFutureValue. deviceChannel, userChannel, unknownFutureValue
Description Write String Admin provided description of the Device Configuration.
DisplayName Key String Admin provided name of the device configuration.
EapFastConfiguration Write String EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type. Possible values are: noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously. noProtectedAccessCredential, useProtectedAccessCredential, useProtectedAccessCredentialAndProvision, useProtectedAccessCredentialAndProvisionAnonymously
EapType Write String Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the wired network. Possible values are: eapTls, leap, eapSim, eapTtls, peap, eapFast, teap. eapTls, leap, eapSim, eapTtls, peap, eapFast, teap
EnableOuterIdentityPrivacy Write String Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this wired network using their real username is displayed as 'anonymous'.
Id Write String The unique identifier for an entity. Read-only.
NetworkInterface Write String Network interface. Possible values are: anyEthernet, firstActiveEthernet, secondActiveEthernet, thirdActiveEthernet, firstEthernet, secondEthernet, thirdEthernet. anyEthernet, firstActiveEthernet, secondActiveEthernet, thirdActiveEthernet, firstEthernet, secondEthernet, thirdEthernet
NetworkName Write String Network Name
NonEapAuthenticationMethodForEapTtls Write String Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password. Possible values are: unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo. unencryptedPassword, challengeHandshakeAuthenticationProtocol, microsoftChap, microsoftChapVersionTwo
RoleScopeTagIds Write String[] List of Scope Tags for this Entity instance.
TrustedServerCertificateNames Write String[] Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this wired network.
Ensure Write String Specify if the policy should exist. Present, Absent
Credential Write PSCredential Credentials of the Intune Admin
ApplicationId Write String Id of the Entra ID application to authenticate with.
TenantId Write String Id of the Entra ID tenant used for authentication.
ApplicationSecret Write PSCredential Secret of the Entra ID application to authenticate with.
CertificateThumbprint Write String Thumbprint of the Entra ID 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_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

This resource configures a Intune Device Configuration Wired Network Policy for macOS.

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
    {
        IntuneDeviceConfigurationWiredNetworkPolicyMacOS 'IntuneDeviceConfigurationWiredNetworkPolicyMacOS-Example'
        {
            Assignments                          = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType                                   = "#microsoft.graph.allDevicesAssignmentTarget"
                    deviceAndAppManagementAssignmentFilterType = "none"
                }
            );
            AuthenticationMethod                 = "certificate";
            DeploymentChannel                    = "deviceChannel";
            Description                          = "802.1X wired access for managed Macs";
            DisplayName                          = "macOS Wired Network";
            EapFastConfiguration                 = "noProtectedAccessCredential";
            EapType                              = "eapTls";
            EnableOuterIdentityPrivacy           = "anonymous";
            NetworkInterface                     = "anyEthernet";
            NetworkName                          = "Contoso Wired";
            NonEapAuthenticationMethodForEapTtls = "unencryptedPassword";
            RoleScopeTagIds                      = @("0");
            TrustedServerCertificateNames        = @("radius01.contoso.com", "radius02.contoso.com");
            Ensure                               = "Present";
            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
    {
        IntuneDeviceConfigurationWiredNetworkPolicyMacOS 'IntuneDeviceConfigurationWiredNetworkPolicyMacOS-Example'
        {
            Assignments                          = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType                                   = "#microsoft.graph.allDevicesAssignmentTarget"
                    deviceAndAppManagementAssignmentFilterType = "none"
                }
            );
            AuthenticationMethod                 = "certificate";
            DeploymentChannel                    = "deviceChannel";
            Description                          = "802.1X wired access for managed Macs in the Zurich office"; # Updated Property
            DisplayName                          = "macOS Wired Network";
            EapFastConfiguration                 = "noProtectedAccessCredential";
            EapType                              = "eapTls";
            EnableOuterIdentityPrivacy           = "anonymous";
            NetworkInterface                     = "anyEthernet";
            NetworkName                          = "Contoso Wired";
            NonEapAuthenticationMethodForEapTtls = "unencryptedPassword";
            RoleScopeTagIds                      = @("0");
            TrustedServerCertificateNames        = @("radius01.contoso.com", "radius02.contoso.com");
            Ensure                               = "Present";
            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
    {
        IntuneDeviceConfigurationWiredNetworkPolicyMacOS 'IntuneDeviceConfigurationWiredNetworkPolicyMacOS-Example'
        {
            DisplayName           = "macOS Wired Network";
            Ensure                = "Absent";
            ApplicationId         = $ApplicationId;
            TenantId              = $TenantId;
            CertificateThumbprint = $CertificateThumbprint;
        }
    }
}