Creating scheduled task via gpo
-
Saturday, December 29, 2012 8:16 AM
Hi
i have created a scheduled task via gpo in computer configuration on windows 2008 r2 and i need to deploy it to windows xp and windows 7 clients.
on the windows xp clients i have already deployed the client side.
when i enforce the policy on the clients, the normal domain users do not receive the task.
However when i log in with admin rights wether domain or local admin, the task is created.
How can that be solved? ANY IDEAS?
All Replies
-
Saturday, December 29, 2012 8:47 AM
Hi,
This link will help you to create schedule task using GPO step by step.
http://technet.microsoft.com/en-us/library/cc725745.aspx
Regards,
MD Disclaimer: The opinion expressed herein are my own knowledge. Deploy this at your own risk. Whenever you see a helpful reply, just click on “Propose As Answer”
-
Saturday, December 29, 2012 9:49 AM
Hi,
Scheduled task will not run with a blank password.
http://support.microsoft.com/kb/310715
Otherwise you can run a scheduled task to create a batch file with the help of following link and deploy through GPO.
http://technet.microsoft.com/en-us/library/cc772785(v=ws.10).aspx
Regards,
MD Disclaimer: The opinion expressed herein are my own knowledge. Deploy this at your own risk. Whenever you see a helpful reply, just click on “Propose As Answer”
- Edited by Mubasshir Dadarkar Saturday, December 29, 2012 9:54 AM
-
Saturday, December 29, 2012 10:53 AMThanks for reply but i already did all these. the task does not even appear in the normal user schedule task but only if an admin logs in. So i dont think its a username or password in the task itself but somewhere else that will give access to any domain user to receive and apply this policy on any normal profile.
-
Saturday, December 29, 2012 11:53 AM
Hello,
Did you configure the task in Computer Configuration or User Configuration?
Do you have any Item Level Targeting?
Did you modify the ACLs (Delegation) of the group policy?
What does gpresult /h %userprofile%\desktop\report.html say?
MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!
- Edited by Matthias WolfMVP Saturday, December 29, 2012 11:54 AM
-
Saturday, December 29, 2012 12:02 PM
on the "Common Options" tab, did you select "Run in logged-on user's security context " ?
Or are you specifying the credentials in the "Runas" setting?
(essentially, does the logged-on, or specified user, have the privilege level required, to create a scheduled task?)
(by default, schtasks created under CompConfig will run under the SYSTEM context, which should have necessary privilege)
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)- Edited by Don - tesgroupMicrosoft Community Contributor Saturday, December 29, 2012 12:04 PM
-
Saturday, December 29, 2012 12:46 PM
Hello Don,
(by default, schtasks created under CompConfig will run under the SYSTEM context, which should have necessary privilege)
This is only true for the "classic" scheduled tasks.
If you create a "Scheduled Task (At least Windows 7)", you need to specify a user account:
on the "Common Options" tab, did you select "Run in logged-on user's security context" ?
I think there is not really a difference.
This option only exists in User Configuration.
Anyway, if you have specified an account, it will run in the accounts context.
Even if you leave the default:
MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!
-
Saturday, December 29, 2012 11:25 PM
@Matthias - yes, I am guessing a bit here, since the OP mentioned he was doing this for both XP and Win7, I assumed classic schtasks :SHello Don,
(by default, schtasks created under CompConfig will run under the SYSTEM context, which should have necessary privilege)
This is only true for the "classic" scheduled tasks.
If you create a "Scheduled Task (At least Windows 7)", you need to specify a user account:
on the "Common Options" tab, did you select "Run in logged-on user's security context" ?
I think there is not really a difference.
This option only exists in User Configuration.Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
Sunday, December 30, 2012 5:05 AMhelo , policy is configured in Computer Configurationn with no item level targeting. for acl nothing have been changed
-
Sunday, December 30, 2012 5:07 AMit is the classic one. i even try by user configuration but to no avail.
-
Sunday, December 30, 2012 6:59 AMscheduled task not work on domain user. i create a schedule task with administrator user about everyday shutdown computer @ specific time. It work that's time but when i login domain user scheduled task not work.
-
Sunday, December 30, 2012 2:08 PM
Hello ncool,
Please answer my last question:
What does gpresult /h %userprofile%\desktop\report.html say?You can only use this command on Windows 7 not XP.
Does the scheduled task not apply on Windows 7 and Windows XP?
Please also provide the XML file of your preference item.You need to right-click on the preference and choose All Tasks > Display Xml.
MVP Group Policy - Mythen, Insiderinfos und Troubleshooting zum Thema GPOs: Let's go, use GPO!
-
Monday, December 31, 2012 2:24 PM
I found the solution to my problem by doing this:
Since normal users can not create these scheduled tasks, i gave access via gpo on userconfiguration\preferrences\folders and added c:\windows\tasks.
however the task must be created in computer configuration side.
i did a gpupdate /force on the windows xp clients and it works!!!
- Marked As Answer by nccool Monday, December 31, 2012 2:24 PM
-
Wednesday, May 15, 2013 3:34 PM
I still have this problem and don't know how to solve it.
I have in windows 2008 AD - taks schedule over GPO for user to backup files from windows 7 client, to windows 2008 server.
Every user have mapped disk Z: which is actually some folder on server 2008.
Now in task schedule on server I made a job....
user which runs this job is NT AUTHORITY\System
run with highest privileges
runnnig program is batch file C:\Users\%username%\Desktop\copy.bat
and in batch file is this
robocopy C:\Users\%username%\Desktop z:\Users\%username%\Desktop /e /fft /w:1 /r:1 /ns /nc /nfl /ndl /np /copy:dt
I tryed everything and doesn't work, when I double click it on desktop it works, but over task schedule doesn't.
Can somebody helps me to work this out?
I never left an open problem....I search, dig and ask, until it's solved....

