spjeff / sppatchify

SharePoint Patchify - centralized tool to apply CU patch to entire farm from one console
MIT License
1 stars 0 forks source link

Failing because of toggling "Schedule" service #44

Open evolucja opened 2 years ago

evolucja commented 2 years ago

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

spjeff commented 2 years ago

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

Have pull request with updated code?