en-US

AutoEnableAfter

Parameter of AutoSensitivityLabelPolicy

Applies to : Security & Compliance

Description

The AutoEnableAfter parameter allows you to automatically turn on the policy after a set time period in simulation with no modifications to the policy. You need to explicitly set this parameter after each policy edit to keep or reset the automatic turn on timeline.

To specify a value, enter it as a time span: dd.hh:mm:ss where dd = days, hh = hours, mm = minutes, and ss = seconds.

A valid value is between 1 hour and 25 days. To clear an existing AutoEnableAfter schedule that's associated with a policy, use the value $null.

You must use this parameter with the -StartSimulation parameter.

Microsoft Learn documentation

Characteristics

Type
TimeSpan
Parameter sets
Identity

Apply

This value type (TimeSpan) must be built by hand: see the examples on the policy page and the Microsoft documentation.