Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-ATPBuiltInProtectionRule and Get-ATPProtectionPolicyRule is not recognized as the name of a cmdlet, function, script file, or operable program. #5820

Open
jae328 opened this issue Feb 21, 2025 · 1 comment

Comments

@jae328
Copy link

jae328 commented Feb 21, 2025

Description of the issue

I try to export EXOAtpProtectionPolicyRule and EXOATPBuiltInProtectionRule but I got an error saying
The term 'Get-ATPBuiltInProtectionRule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

The term 'Get-ATPProtectionPolicyRule' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Is it related to EXOAtpPolicyForO365 - The current tenant is not registered to allow for ATP Policies?

Microsoft 365 DSC Version

1.25.219.2

Which workloads are affected

Exchange Online

The DSC configuration

Verbose logs showing the problem

Environment Information + PowerShell Version

@FabienTschanz
Copy link
Collaborator

To use this resource, you need one of the following roles:

Get-ManagementRole -Cmdlet Get-ATPBuiltInProtectionRule

Name                    RoleType
----                    --------
O365SupportViewConfig   O365SupportViewConfig
Security Admin          SecurityAdmin
Security Reader         SecurityReader
Transport Hygiene       TransportHygiene
View-Only Configuration ViewOnlyConfiguration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants