Maintenance Window

An options non standard configuration is to define a maintenance window. Both the EffectiveDateTime and Start/End times need to evaluate $true in order to not restrict a package from processing. All parameters are required. If UTC is $false, then Start and End times are evaluated in the local system time.

@{
    "MaintenanceWindow" = @{
        Name              = 'MaintenanceWindow'
        EffectiveDateTime = "04-05-2021 21:00"
        Start             = '23:00'
        End               = '05:30'
        UTC               = $true
    }
}

Last updated

Was this helpful?