-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xScheduleTask: Cannot disable already present tasks #74
Comments
Hi @johlju - ah - I see. You're talking about the |
Not urgent at all for me. Worked around it by using Script-resource instead. But rather use this when it is resolved. |
Sounds great. I hope it will be a small change :) I can review when you are done :) |
Issue is the same for deleting existing tasks. The following DSC action fails requiring ActionExecutable and ScheduleType parameters. xScheduledTask 'DeleteMyTask' Fix needed to automate optimization of Citrix XenDesktop and Microsoft RDS Virtual Desktop Infrastructure master images as described in https://virtualfeller.com/2017/05/04/optimize-vdi-windows-10-scheduled-tasks-original-anniversary-and-creator-updates/ Tasks like Microsoft\Windows\Application Experience\ProgramDataUpdater don't have a valid ScheduleType for the xScheduledTask DSC resource. Executing the same DSC action while setting the ActionExecutable and ScheduleType values also fails with a Trigger type $_ not recognized as the ScheduleType is not one of the ScheduleTypes defined in the switch/case of the GET function.
|
@PlagueHO Hey Daniel, I'm running into issues trying to use DSC and xScheduleTask to delete the "Xbox" scheduled tasks that Server 2016 creates... (I know, right?)... I was wondering if you have any cycles to take a look at the necessary changes to support deleting these tasks? From what I'm able to glean, the ActionExecutable and ScheduleType parameters being required parameters is what is causing this issue... perhaps we can make them not required when deleting? If there is any further detail or assistance I can provide, please let me know! |
Hi @ttdgcp - Now that I've finished updating this module to HQRM I'll begin working on the features like this one. I actually started this a little while back so I'll try and work on this one this weekend (as well as some stuff on WsManDsc). |
@PlagueHO : Planning to rebuild my https://github.com/puppetlabs/puppetlabs-dsc fork with up to date powershell dsc modules (including sqlserverdsc update). When do you think you'll gonna be able to release the modifications required for scheduled task removal ? Fix needed for https://github.com/virtualdesktopdevops/xd7vda. |
Hi @matt6697 - this is in progress but I haven't managed to finish it yet (still working on updating the tests and other fun stuff like that). I'm hoping to get some free time this week to complete it. Sorry about taking so long! |
Nearly finished now. I have completed all the new tests required for this change. Just need to make the pass 😉 . Still aim to have this complete over the next couple of days. Note: This change will be a breaking change because I'm going to have to remove some fields from the |
@PlagueHO : Hi Daniel, thanks for the update :-) |
Almost there! Should have the PR submitted tomorrow. New integration tests completed and passing, but unit tests are still failing. Need to increase the unit test coverage on the new code I added. |
BREAKING CHANGE: xScheduledTask: Add support for disabling built-in tasks - Fixes #74
It's not possible to disable already present tasks because it needs to set required parameters that should not be changed (and might be unknown per target node).
The text was updated successfully, but these errors were encountered: