sppatchify icon indicating copy to clipboard operation
sppatchify copied to clipboard

Failing because of toggling "Schedule" service

Open grzywek opened this issue 3 years ago • 1 comments

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

grzywek avatar Sep 30 '22 10:09 grzywek

Open to changes. Idea was to pause any scheduled maintenance jobs.

Have pull request with updated code?

spjeff avatar Sep 30 '22 12:09 spjeff