Hi. I created group policy with scheduled task (`Windows 7+` type). Scheduled task contains multiple commands, group policy applies to Server 2012R2
.
After group policy update scheduled task creates and runs successfully, but after another group policy update task stops in the middle. Task Scheduler show me successful exit code, although half of commands in the task has not been called.
This behaviour present in all 3 cases: regular group policy update, gpupdate
and gpupdate /force
.
I suspect this is because group policy update replaced task in the middle of running, so my questions is:
1. Is scheduled task stop-after-task-update
behavior bug or feature?
2. If this is feature, is there any workaround better than putting commands into script and calling this script from scheduled task?