CmdID / PowerShell / Cmdlets / Set
Set-AtpPolicyForO365
Use the Set-AtpPolicyForO365 cmdlet to modify the settings for the following features in Microsoft Defender for Office 365: Exchange PowerShell reference
From the Exchange PowerShell reference 6 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the policy that you want to modify.-AllowSafeDocsOpenThe AllowSafeDocsOpen parameter specifies whether users can click through and bypass the Protected View container even when Safe Documents identifies a file as malicious.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-EnableATPForSPOTeamsODBThe EnableATPForSPOTeamsODB parameter enables or disables Safe Attachments for SharePoint, OneDrive, and Microsoft Teams.-EnableSafeDocsThe EnableSafeDocs parameter enables or disables Safe Documents in organizations with Microsoft 365 A5 or Microsoft 365 E5 Security licenses.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.