You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2018. It is now read-only.
I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created.
Results:
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer USB-TGKCTEST with user sid S-1-5-21-2950772361-2964733660-914393307-1001.
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ]
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
Unable to find matching job.
VERBOSE: [USB-TGKCTEST]: LCM: [ End Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
in 0.5160 seconds.
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
in 0.9530 seconds.
VERBOSE: [USB-TGKCTEST]: LCM: [ End Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] in 1.8358 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 2.025 seconds
The text was updated successfully, but these errors were encountered:
It's because this resource is using 'scheduled jobs' rather than 'scheduled tasks', so it only accepts PowerShell files. I just found this out as well...
I think the -ErrorAction SilentlyContinue needs to be removed from this:
I'm trying to use DSC to create scheduled tasks. I run the code below and it appears successful and there are no issues in the event log, but a task is not created.
Results:
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer USB-TGKCTEST with user sid S-1-5-21-2950772361-2964733660-914393307-1001.
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ]
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
Unable to find matching job.
VERBOSE: [USB-TGKCTEST]: LCM: [ End Test ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
in 0.5160 seconds.
VERBOSE: [USB-TGKCTEST]: LCM: [ Start Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
in 0.9530 seconds.
VERBOSE: [USB-TGKCTEST]: LCM: [ End Resource ] [[ScheduledTask]Test_Task::[Misc]System.Management.Automation.PSCredential::[Misc]System.Management.Automation.PSCredential]
VERBOSE: [USB-TGKCTEST]: LCM: [ End Set ] in 1.8358 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 2.025 seconds
The text was updated successfully, but these errors were encountered: