sppatchify
sppatchify copied to clipboard
Failing because of toggling "Schedule" service
Hi, what is the reason and what was the intention for toggling "Schedule" service?
In phase one it gets disabled first by "ChangeServices $false" and then it tries to execute exe file by using task scheduler which is not possible and doesn't make sense to me.
It fails with the following error:
2022-09-30T08:58:23.6430410Z Register and start SCHTASK - XXXXXXXXX - C:\azagent\A1\_work\r1\a\_AutoPatching\AutoPatching\media\ubersrv2013-kb5002240-fullfile-x64-glb.exe
2022-09-30T08:58:23.9379859Z Register-ScheduledTask : The Task Scheduler Service is not running.
Thanks
Open to changes. Idea was to pause any scheduled maintenance jobs.
Have pull request with updated code?