Skip to content

MSFT_IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10.psm1 is missing AccessTokens parameter #5034

@ericoevering

Description

Description of the issue

to fix the problem from line 746 of MSFT_IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10.psm1 file

function Export-TargetResource
{
[CmdletBinding()]
[OutputType([System.String])]
param
(
[Parameter()]
[System.String]
$Filter,

    [Parameter()]
    [System.Management.Automation.PSCredential]
    $Credential,

    [Parameter()]
    [System.String]
    $ApplicationId,

    [Parameter()]
    [System.String]
    $TenantId,

    [Parameter()]
    [System.Management.Automation.PSCredential]
    $ApplicationSecret,

    [Parameter()]
    [System.String]
    $CertificateThumbprint,

    [Parameter()]
    [Switch]
    $ManagedIdentity,

    [Parameter()]
    [System.String[]]
    $AccessTokens
)

Microsoft 365 DSC Version

1.24.904.1

Which workloads are affected

Intune

The DSC configuration

84/120] Extracting [IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10] using {AccessTokens}...Partial Export file was saved at:...
Export-TargetResource : A parameter cannot be found that matches parameter name 'AccessTokens'.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.904.1\Modules\M365DSCReverse.psm1:682 char:61
+$exportString.Append((Export-TargetResource @parameters)) | Out …
+                                                     ~~~~~~~~~~~
+ CategoryInfo          : InvalidArgument: (:) [Export-TargetResource], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Export-TargetResource

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions