Skip to content

Commit d2f0f26

Browse files
committed
Update changelog
1 parent b27136c commit d2f0f26

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
- Moved strings to localization file.
1010
- Changed the scope from Global to Script in MSFT_ScheduledTask.Integration.Tests.ps1
1111
- Changed the scope from Global to Script ComputerManagementDsc.Common.Tests.ps1
12+
- ScheduledTask:
13+
- Added support for event based triggers, implemented using the ScheduleType OnEvent
1214

1315
## 5.1.0.0
1416

Modules/ComputerManagementDsc/Examples/Resources/ScheduledTask/13-CreateScheduledTasksOnEvent.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
root folder. The task is delayed by exactly 30 seconds each time. The task will run when
55
an error event 7001 of source Service Control Manager is generated in the system log.
66
When a service crashes, it waits for 30 seconds and then starts a new PowerShell instance,
7-
in which the command Invoke-ServiceCrashReport will be executed.
7+
in which the file c:\temp\seeme.txt get's created with the value 'Worked!'
88
#>
99
Configuration Example
1010
{
@@ -25,7 +25,7 @@ Configuration Example
2525
Ensure = 'Present'
2626
ScheduleType = 'OnEvent'
2727
ActionExecutable = 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
28-
ActionArguments = '-Command Invoke-ServiceCrashReport'
28+
ActionArguments = '-Command Set-Content -Path c:\temp\seeme.txt -Value ''Worked!'''
2929
EventSubscription = '<QueryList><Query Id="0" Path="System"><Select Path="System">*[System[Provider[@Name=''Service Control Manager''] and (Level=2) and (EventID=7001)]]</Select></Query></QueryList>'
3030
Delay = '00:00:30'
3131
}

0 commit comments

Comments
 (0)