Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Batch file Deployment by Group Policy

Posted on 2014-03-17
6
Medium Priority
?
3,186 Views
Last Modified: 2014-03-24
Hello,

I have created a batch file that is to be used to restart a service. I would like to deploy a group policy to run this file twice daily on all machines in one of my OUs.  Is it possible to create a new policy and configure a scheduled task under Computer Configuration, then link to the OU?

I need a little guidance on this one.

Thanks
RD.
0
Comment
Question by:BadToro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 22

Accepted Solution

by:
Joseph Moody earned 1500 total points
ID: 39934132
Sure!

You will want to use Group Policy Preferences Scheduled Tasks to create the task and Group Policy Preferences Files to copy the batch file locally.

Here is a guide that shows how to create scheduled tasks:

http://deployhappiness.com/poor-mans-free-group-policy-monitoring/
0
 
LVL 56

Expert Comment

by:McKnife
ID: 39938600
Please be aware that there's one terrible error one could make: if you happen to have vista machines on your network, don't deploy windows 7 style tasks to them, it will break their whole scheduler (reproducible).
0
 

Author Comment

by:BadToro
ID: 39940537
Hi, sorry for taking so long.  I was away from the office for a while.  Thanks for the link, it was helpful but I have another query.  How do I set a random delay on the task schedule?  I don't see this option when scheduling the task via group policy.

Thanks!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 56

Expert Comment

by:McKnife
ID: 39941069
This option can be seen if you use "at least windows 7"-style tasks. The oldschool xp tasks don't know this option (neither does xp as a client).
0
 

Author Comment

by:BadToro
ID: 39945803
Thanks McKnife.  Not to serious I just found it odd, I have 2 x 2k8 windows servers.  On one of them, I have a newer version of task scheduler which includes the option and on the other server - only the legacy version which does not.

Just found it odd and unfortunately, its the domain with the legacy version that I have to deploy the policy.

Best Regards and thanks for the help.
0
 
LVL 56

Expert Comment

by:McKnife
ID: 39945900
Use RSAT and connect from win7. Then, all settings you need are present.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question