?
Solved

Batch file Deployment by Group Policy

Posted on 2014-03-17
6
Medium Priority
?
3,036 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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 process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

770 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