Skip to content

Effect

SYNOPSIS

The policy effect: a literal such as Deny, or (Param Effect).

SYNTAX

Effect [-Value] <Object> [<CommonParameters>]

DESCRIPTION

Effect is for the effects without details: Audit, Deny and Disabled. The others have their own keywords: Modify, Append, DenyAction, Manual, AuditIfNotExists and DeployIfNotExists. With a literal effect, EPAC output gets an effect parameter with that default, so an assignment can still change it.

USED IN

Policy

EXAMPLES

Example 1

Effect Deny

Example 2

Parameter Effect -AllowedValues Audit, Deny, Disabled -Default Audit
Effect (Param Effect)

PARAMETERS

-Value

Audit, Deny or Disabled, or (Param Name) for a parameter that holds the effect.

Type: Object
Required: true
Position: 1
Accept pipeline input: false