DSC resources for for configuration of a Windows computer. These DSC resources allow you to perform computer management tasks, such as renaming the computer, joining a domain and scheduling tasks as well as configuring items such as virtual memory, event logs, time zones and power settings.
Details of the scenario you tried and the problem that is occurring
In this case, we have a scheduled task that runs continuously but gets restarted daily, The manually created tasks specify "If the scheduled task is already running, then ... Stop the existing instance". This is one of four options in the drop-down box and shows up in the task's XML file as:
ComputerManagementDsc\ScheduledTask : At least one of the values 'StopExisting' is not supported or valid for property 'MultipleInstances' on class 'ScheduledTask'. Please specify only supported values:
IgnoreNew, Parallel, Queue.
At C:\Git-Repositories\dba\dsc\sbcdb-sync\Compile-TaskSchedulerConfiguration.ps1:43 char:7
+ ScheduledTask 'MonitorTask'
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-Error], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnsupportedValueForProperty,ComputerManagementDsc\ScheduledTask
Suggested solution to the issue
Add "StopExisting" to the list of valid values for the MultipleInstances parameter.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Details of the scenario you tried and the problem that is occurring
In this case, we have a scheduled task that runs continuously but gets restarted daily, The manually created tasks specify "If the scheduled task is already running, then ... Stop the existing instance". This is one of four options in the drop-down box and shows up in the task's XML file as:
Verbose logs showing the problem
Suggested solution to the issue
Add "StopExisting" to the list of valid values for the MultipleInstances parameter.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
ComputerManagementDsc 8.2.0