Task Schedule not executing at “Startup” when created through GPO PreferencesGroup Policy Task Schedule deployed to User Configuration not working, works when in Computer Configuration?GPP: Scheduled TaskGPO for Scheduled Task Server 2008 R2 (Computer reboot)Windows 7: Update a file in the system32 folder via GPOWindows domain software deployment not applying at startup - NETLOGON error 5719Run a script when joining a domaina conflict with Internet Explorer kiosk mode and the Windows 10 taskbarGPO Access Denied (Security Filtering)GPO not applied, gpresult /R OK — scheduled task not createdTask Scheduler To Run batch file windows server 2012

Guns in space with bullets that return?

How to make the table in the figure in LaTeX?

How can a Lich look like a human without magic?

Why does the Earth follow an elliptical trajectory rather than a parabolic one?

Noob at soldering, can anyone explain why my circuit won't work?

Cropping a message using array splits

Would an 8% reduction in drag outweigh the weight addition from this custom CFD-tested winglet?

Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019

What is the difference between "Plural" and "Mehrzahl"?

Does Lawful Interception of 4G / the proposed 5G provide a back door for hackers as well?

Limit of an integral vs Limit of the integrand

A musical commute to work

How to align underlines in a cases environment

Is Simic Ascendancy triggered by Awakening of Vitu-Ghazi?

How are Core iX names like Core i5, i7 related to Haswell, Ivy Bridge?

What is the significance of 4200 BCE in context of farming replacing foraging in Europe?

How could we transfer large amounts of energy sourced in space to Earth?

Is a diamond sword feasible?

Why was the Ancient One so hesitant to teach Dr. Strange the art of sorcery?

Ex-manager wants to stay in touch, I don't want to

How to pronounce "r" after a "g"?

How Car Rear View Mirrors Work

Remove everything except csv file Bash Script

What is the airplane type in this formation seen above Eugene, Oregon?



Task Schedule not executing at “Startup” when created through GPO Preferences


Group Policy Task Schedule deployed to User Configuration not working, works when in Computer Configuration?GPP: Scheduled TaskGPO for Scheduled Task Server 2008 R2 (Computer reboot)Windows 7: Update a file in the system32 folder via GPOWindows domain software deployment not applying at startup - NETLOGON error 5719Run a script when joining a domaina conflict with Internet Explorer kiosk mode and the Windows 10 taskbarGPO Access Denied (Security Filtering)GPO not applied, gpresult /R OK — scheduled task not createdTask Scheduler To Run batch file windows server 2012






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








2















I've noticed if I create the Task for all my PC's on my DC through GPO Preferences with the "At startup" trigger (no matter what I execute, it can be VBS, EXE, PowerShell ...), Task will never execute.



So, this would be prerequisites:



  1. Task should be created on the DC side with GPO Preferences (locally created Tasks work just fine, so please, don't bother checking this locally because it will work).


  2. The problem is in "At startup" trigger ... all other triggers work just fine.


Picture 1. - General tab



Picture 2. - Triggers tab



First I suspected something is wrong with the clients or DC or other GPO's or Windows Updates or ...
So, I've setup two new VM's.



DC Server: Windows Server 2016, clean, no updates and only three GPO's (unmodified "Default Domain Policy", unmodified "Default Domain Controllers Policy" and my GPO that only creates one Task with the trigger "At startup")



Client: Windows 10 v1809, clean, no updates



It didn't help. I've then fully updated both DC Server and Client. It didn't help.



I have a workaround. Exactly the same Task with all the same options will execute during "Startup" just fine if it is created with two triggers:



  1. At task creation/modification


  2. At startup


Picture 3. - Workaround Triggers tab (Multiple triggers)



Could someone confirm to me this is happening on their end also? Does someone have an explanation for this behavior?



Although I have a workaround for this, this is a problem. Why? Well what if we want Task to be executed only during startup and we want the task to be deleted once the computer is no longer part of Domain. Well, then it's a problem. If we want the Task to be deleted once the computer is no longer part of Domain, the Task must be created in "Replace" mode. But when the Task is in "Replace" mode, the Task is recreated every time the Client refreshes it's GPO (every so often), and we have our trigger configured to execute the Task "At task creation/modification", which means Task will not only execute during Startup but every time the computer refreshes it's GPO.



I would be grateful for any input you could give me or if you could at least confirm this is happening on your side also.




Thanks to the "Swisstone's" comment I've managed to figure out what is going on exactly. Also, maybe someone could have figured out solution instantly if I have fallowed one of the rules of this forum "be specific, be very specific and gather all the DATA".



Picture 4. - And the problem was ...



If the task is created in "Replace"/"Update" mode, the Task is being recreated/updated all the time, and if you set the delay for the Task of 30 seconds, Task is being recreated/updated before it has time to trigger during startup.



You could of course always create the Task in "Create" mode but I don't ever create any GPO Preferences in that manner (you can not change it, you can not delete it once the Computer is no longer a part of Domain, so, not very useful method of creating any GPO Preference, at least not for me).



Thank you "Swisstone" one more time.










share|improve this question



















  • 1





    I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

    – Tim Brigham
    May 1 at 17:29






  • 1





    Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

    – Swisstone
    May 1 at 19:08

















2















I've noticed if I create the Task for all my PC's on my DC through GPO Preferences with the "At startup" trigger (no matter what I execute, it can be VBS, EXE, PowerShell ...), Task will never execute.



So, this would be prerequisites:



  1. Task should be created on the DC side with GPO Preferences (locally created Tasks work just fine, so please, don't bother checking this locally because it will work).


  2. The problem is in "At startup" trigger ... all other triggers work just fine.


Picture 1. - General tab



Picture 2. - Triggers tab



First I suspected something is wrong with the clients or DC or other GPO's or Windows Updates or ...
So, I've setup two new VM's.



DC Server: Windows Server 2016, clean, no updates and only three GPO's (unmodified "Default Domain Policy", unmodified "Default Domain Controllers Policy" and my GPO that only creates one Task with the trigger "At startup")



Client: Windows 10 v1809, clean, no updates



It didn't help. I've then fully updated both DC Server and Client. It didn't help.



I have a workaround. Exactly the same Task with all the same options will execute during "Startup" just fine if it is created with two triggers:



  1. At task creation/modification


  2. At startup


Picture 3. - Workaround Triggers tab (Multiple triggers)



Could someone confirm to me this is happening on their end also? Does someone have an explanation for this behavior?



Although I have a workaround for this, this is a problem. Why? Well what if we want Task to be executed only during startup and we want the task to be deleted once the computer is no longer part of Domain. Well, then it's a problem. If we want the Task to be deleted once the computer is no longer part of Domain, the Task must be created in "Replace" mode. But when the Task is in "Replace" mode, the Task is recreated every time the Client refreshes it's GPO (every so often), and we have our trigger configured to execute the Task "At task creation/modification", which means Task will not only execute during Startup but every time the computer refreshes it's GPO.



I would be grateful for any input you could give me or if you could at least confirm this is happening on your side also.




Thanks to the "Swisstone's" comment I've managed to figure out what is going on exactly. Also, maybe someone could have figured out solution instantly if I have fallowed one of the rules of this forum "be specific, be very specific and gather all the DATA".



Picture 4. - And the problem was ...



If the task is created in "Replace"/"Update" mode, the Task is being recreated/updated all the time, and if you set the delay for the Task of 30 seconds, Task is being recreated/updated before it has time to trigger during startup.



You could of course always create the Task in "Create" mode but I don't ever create any GPO Preferences in that manner (you can not change it, you can not delete it once the Computer is no longer a part of Domain, so, not very useful method of creating any GPO Preference, at least not for me).



Thank you "Swisstone" one more time.










share|improve this question



















  • 1





    I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

    – Tim Brigham
    May 1 at 17:29






  • 1





    Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

    – Swisstone
    May 1 at 19:08













2












2








2








I've noticed if I create the Task for all my PC's on my DC through GPO Preferences with the "At startup" trigger (no matter what I execute, it can be VBS, EXE, PowerShell ...), Task will never execute.



So, this would be prerequisites:



  1. Task should be created on the DC side with GPO Preferences (locally created Tasks work just fine, so please, don't bother checking this locally because it will work).


  2. The problem is in "At startup" trigger ... all other triggers work just fine.


Picture 1. - General tab



Picture 2. - Triggers tab



First I suspected something is wrong with the clients or DC or other GPO's or Windows Updates or ...
So, I've setup two new VM's.



DC Server: Windows Server 2016, clean, no updates and only three GPO's (unmodified "Default Domain Policy", unmodified "Default Domain Controllers Policy" and my GPO that only creates one Task with the trigger "At startup")



Client: Windows 10 v1809, clean, no updates



It didn't help. I've then fully updated both DC Server and Client. It didn't help.



I have a workaround. Exactly the same Task with all the same options will execute during "Startup" just fine if it is created with two triggers:



  1. At task creation/modification


  2. At startup


Picture 3. - Workaround Triggers tab (Multiple triggers)



Could someone confirm to me this is happening on their end also? Does someone have an explanation for this behavior?



Although I have a workaround for this, this is a problem. Why? Well what if we want Task to be executed only during startup and we want the task to be deleted once the computer is no longer part of Domain. Well, then it's a problem. If we want the Task to be deleted once the computer is no longer part of Domain, the Task must be created in "Replace" mode. But when the Task is in "Replace" mode, the Task is recreated every time the Client refreshes it's GPO (every so often), and we have our trigger configured to execute the Task "At task creation/modification", which means Task will not only execute during Startup but every time the computer refreshes it's GPO.



I would be grateful for any input you could give me or if you could at least confirm this is happening on your side also.




Thanks to the "Swisstone's" comment I've managed to figure out what is going on exactly. Also, maybe someone could have figured out solution instantly if I have fallowed one of the rules of this forum "be specific, be very specific and gather all the DATA".



Picture 4. - And the problem was ...



If the task is created in "Replace"/"Update" mode, the Task is being recreated/updated all the time, and if you set the delay for the Task of 30 seconds, Task is being recreated/updated before it has time to trigger during startup.



You could of course always create the Task in "Create" mode but I don't ever create any GPO Preferences in that manner (you can not change it, you can not delete it once the Computer is no longer a part of Domain, so, not very useful method of creating any GPO Preference, at least not for me).



Thank you "Swisstone" one more time.










share|improve this question
















I've noticed if I create the Task for all my PC's on my DC through GPO Preferences with the "At startup" trigger (no matter what I execute, it can be VBS, EXE, PowerShell ...), Task will never execute.



So, this would be prerequisites:



  1. Task should be created on the DC side with GPO Preferences (locally created Tasks work just fine, so please, don't bother checking this locally because it will work).


  2. The problem is in "At startup" trigger ... all other triggers work just fine.


Picture 1. - General tab



Picture 2. - Triggers tab



First I suspected something is wrong with the clients or DC or other GPO's or Windows Updates or ...
So, I've setup two new VM's.



DC Server: Windows Server 2016, clean, no updates and only three GPO's (unmodified "Default Domain Policy", unmodified "Default Domain Controllers Policy" and my GPO that only creates one Task with the trigger "At startup")



Client: Windows 10 v1809, clean, no updates



It didn't help. I've then fully updated both DC Server and Client. It didn't help.



I have a workaround. Exactly the same Task with all the same options will execute during "Startup" just fine if it is created with two triggers:



  1. At task creation/modification


  2. At startup


Picture 3. - Workaround Triggers tab (Multiple triggers)



Could someone confirm to me this is happening on their end also? Does someone have an explanation for this behavior?



Although I have a workaround for this, this is a problem. Why? Well what if we want Task to be executed only during startup and we want the task to be deleted once the computer is no longer part of Domain. Well, then it's a problem. If we want the Task to be deleted once the computer is no longer part of Domain, the Task must be created in "Replace" mode. But when the Task is in "Replace" mode, the Task is recreated every time the Client refreshes it's GPO (every so often), and we have our trigger configured to execute the Task "At task creation/modification", which means Task will not only execute during Startup but every time the computer refreshes it's GPO.



I would be grateful for any input you could give me or if you could at least confirm this is happening on your side also.




Thanks to the "Swisstone's" comment I've managed to figure out what is going on exactly. Also, maybe someone could have figured out solution instantly if I have fallowed one of the rules of this forum "be specific, be very specific and gather all the DATA".



Picture 4. - And the problem was ...



If the task is created in "Replace"/"Update" mode, the Task is being recreated/updated all the time, and if you set the delay for the Task of 30 seconds, Task is being recreated/updated before it has time to trigger during startup.



You could of course always create the Task in "Create" mode but I don't ever create any GPO Preferences in that manner (you can not change it, you can not delete it once the Computer is no longer a part of Domain, so, not very useful method of creating any GPO Preference, at least not for me).



Thank you "Swisstone" one more time.







group-policy scheduled-task






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 2 at 8:25







toofat

















asked May 1 at 16:04









toofattoofat

765




765







  • 1





    I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

    – Tim Brigham
    May 1 at 17:29






  • 1





    Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

    – Swisstone
    May 1 at 19:08












  • 1





    I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

    – Tim Brigham
    May 1 at 17:29






  • 1





    Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

    – Swisstone
    May 1 at 19:08







1




1





I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

– Tim Brigham
May 1 at 17:29





I've seen this happen when the task is recreated. Try setting a run once on the GPO, setting to create not update, etc.

– Tim Brigham
May 1 at 17:29




1




1





Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

– Swisstone
May 1 at 19:08





Can you check this event log on the client ?: Applications and Service logs -> Microsoft -> Windows -> TaskScheduler -> Operational and see if you can find interesting informations or warning.

– Swisstone
May 1 at 19:08










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965448%2ftask-schedule-not-executing-at-startup-when-created-through-gpo-preferences%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965448%2ftask-schedule-not-executing-at-startup-when-created-through-gpo-preferences%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company