Solved

Batch file Deployment by Group Policy

Posted on 2014-03-17
6
2,909 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 500 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 55

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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 55

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 55

Expert Comment

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

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Here's a look at newsworthy articles and community happenings during the last month.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
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.

707 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