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

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020