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;
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:
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).
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:
At task creation/modification
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".
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
add a comment |
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:
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).
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:
At task creation/modification
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".
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
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
add a comment |
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:
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).
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:
At task creation/modification
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".
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
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:
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).
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:
At task creation/modification
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".
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
group-policy scheduled-task
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
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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