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.
VERBOSE: [WIN-U00GQQ2VB88]: [[ScheduledTask]ScheduledTaskLogonAdd] MATCH: Value (type 'System.String') for property 'ScheduleType' does match. Current
state is 'AtLogon' and desired state is 'AtLogOn'. (DRC0020)
Problem description
Accepted values for the ScheduleType parameter are
Once
,Daily
,Weekly
,AtStartup
,AtLogOn
andOnEvent
. However, when applying the below configuration, and supplying any variation ofAtLogOn
,AtLogon
,Atlogon
oratlogon
, the value is always set and returned asAtLogon
. I would argue this is a bug, as the value saved should match one of the "acceptable" values defined in the schema. So the value saved against the resource should beAtLogon
and the accepted value here https://github.com/dsccommunity/ComputerManagementDsc/blob/d05adb09e753e0deebd7687b83dbba6584dfc6c7/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.schema.mof#L10, updated toAtLogon
.Verbose logs
DSC configuration
Suggested solution
Update the allowed values at https://github.com/dsccommunity/ComputerManagementDsc/blob/d05adb09e753e0deebd7687b83dbba6584dfc6c7/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.schema.mof#L10 to accept
AtLogon
overAtLogOn
.Operating system the target node is running
PowerShell version and build the target node is running
ComputerManagementDsc version