Skip to content

Commit 4975fa8

Browse files
authored
BREAKING CHANGE: ScheduledTask: Update and fix existing task trigger parameters (#437)
1 parent 62ba944 commit 4975fa8

17 files changed

+1295
-218
lines changed

CHANGELOG.md

+30-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8+
### Added
9+
10+
- ScheduledTask
11+
- Added support for ScheduleType 'OnIdle', 'AtCreation', 'OnSessionState'.
12+
Fixes [Issue #282](https://github.com/dsccommunity/ComputerManagementDsc/issues/282).
13+
- Added support for StateChange to allow specifying which session state changes should
14+
trigger the task (with ScheduleType = OnSessionState).
15+
- Added support for StopAtDurationEnd permitting control over the 'Stop all running tasks
16+
at the end of the repetition duration' feature.
17+
Fixes [Issue #168](https://github.com/dsccommunity/ComputerManagementDsc/issues/168).
18+
- Added support for TriggerExecutionTimeLimit permitting control over per-trigger 'Stop task
19+
if it runs longer than...' feature.
20+
821
### Fixed
922

23+
- BREAKING CHANGE: ScheduledTask
24+
- Fixed User parameter to correctly return the user that triggers an AtLogon or OnSessionState
25+
Schedule Type, instead of the current value of ExecuteAsCredential. This parameter
26+
is only valid when using the AtLogon and OnSessionState Schedule Types.
27+
- Fixed User parameter to permit use even if LogonType = Group.
28+
- Updated RandomDelay logic from a blacklist to a whitelist.
29+
- Updated Delay parameter logic to reflect other TimeSpan based values.
30+
- Updated unit tests to use Should -Invoke for Pester 5 compatibility.
1031
- `VirtualMemory` fix incorrect variable name
1132
- `SmbServerConfiguration` remove errant argument
1233

1334
### Changed
1435

15-
- Converted tests to Pester 5
16-
- Rename Delete-ADSIObject to Delete-ADSIObject to satisfy HQRM
36+
- BREAKING CHANGE: ScheduledTask
37+
- Allow StartTime to be used to set the 'Activate' setting when adding ScheduleType triggers
38+
other than 'Once', 'Daily' and 'Weekly'.
39+
- Updated Delay parameter to support ScheduleType AtLogon, AtStartup, AtCreation, OnSessionState.
40+
Fixes [Issue #345](https://github.com/dsccommunity/ComputerManagementDsc/issues/345).
41+
- Updated User parameter for use with ScheduleType OnSessionState in addition to AtLogon.
42+
- Updated integration tests to ensure resource and configuration names are matching.
43+
- Converted tests to Pester 5
44+
- Rename Delete-ADSIObject to Delete-ADSIObject to satisfy HQRM
1745

1846
### Removed
1947

0 commit comments

Comments
 (0)