Skip to content

Export-Intune-Policies.ps1 needs additional MSGraph scope - DeviceManagementScripts.Read.All #12

@quog

Description

@quog

Hi

intune/Export & Import Policies/Export-Intune-Policies.ps1

Line 38 change
| Connect-MgGraph -Scopes "Policy.Read.All","DeviceManagementConfiguration.Read.All"
to
| Connect-MgGraph -Scopes "Policy.Read.All","DeviceManagementConfiguration.Read.All","DeviceManagementScripts.Read.All"

Otherwise it throws a 403 on several sections.

Regards
Damian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions