en-US

TeamsProtectionPolicy

Applies to : Exchange Online

This cmdlet is available only in the cloud-based service.

Use the Set-TeamsProtectionPolicy cmdlet to modify Microsoft Teams protection policies.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

Available cmdlets

Parameters

Name Type Default value Accepted values
AdminDisplayName String
HighConfidencePhishQuarantineTag String
MalwareQuarantineTag String
ZapEnabled Boolean False

Examples

Example 1

Set-TeamsProtectionPolicy -Identity "Teams Protection Policy" -HighConfidencePhishQuarantineTag AdminOnlyWithNotifications

This example changes the quarantine policy that's used for high confidence phishing detections.

Microsoft Learn documentation