Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.38 KB

Set-CIPPSpamFilter.md

File metadata and controls

32 lines (26 loc) · 1.38 KB

Set-CIPPSpamFilter

SYNOPSIS

Sets the state of a spam filter for a customer's tenant.

DESCRIPTION

The Set-CIPPSpamFilter function is used to edit the state of a spam filter for a customer's tenant. It takes the customer's tenant ID, a unique identifier (optional), the name of the spam filter, and the desired state (Enable or Disable) as parameters.

PARAMETERS

-CustomerTenantID

Foo Foo
The ID of the customer's tenant.

-Guid

Foo Foo
A unique identifier for the spam filter. This parameter is optional.

-Name

Foo Foo
The name of the spam filter.

-State

Foo Foo
The desired state of the spam filter. Valid values are "Enable" or "Disable".

EXAMPLE 1

PS > Set-CIPPSpamFilter -CustomerTenantID "contoso.onmicrosoft.com" -Name "SpamFilter1" -State "Enable"

EXAMPLE 2

PS > Set-CIPPSpamFilter -CustomerTenantID "contoso.onmicrosoft.com" -Guid "abcdefg" -Name "SpamFilter2" -State "Disable"