Is it possible to use GPO to run a batch file once a week? NOT login/logout scripts!!

Hello Experts,

I'm not an AD guru by any means, and have little experience with GPO's. I would like to know if it's possible to use GPO to run a bat file once a week on my DCs. I have created a folder on one of my DCs (C:\scripts). I know that I can use Task Scheduler to run the bat file, which works beautifully. However, what if I had 100 machines onto which I wanted to do the same thing? Would I have to use the Task Scheduler on all 100 machines? Yikes! I only have 8 DCs, which is not too bad, but I'm convinced that there's gotta be a way thru AD/GPO in which I can accomplish this.
LVL 2
bnditAsked:
Who is Participating?
 
LauraEHunterMVPConnect With a Mentor Commented:
The GPO improvements in Windows Server 2008 (which will back-port to 2K3 and XP) will allow you to manipulate Scheduled Tasks via GPO on target machines. At present anything you would configure like that would either involve something 3rd-party like SMS or else would be a bit of a kludge; typically I'll use psexec from an administrative workstation to push out scheduled tasks rather than mucking with Scheduled Tasks on remote machines.
0
 
LVNeptuneCommented:
You should be able to create the batch file the make a batch file to copy it to the administrative shares for the task scheduler on each machine
0
 
bnditAuthor Commented:
Hi LVNeptune,

Could you elaborate a bit? I think you're suggesting that I create a batch file that would copy my folder containing my scripts to each server, correct? However, I don't quite understand the second part about the task scheduler. Are you offering an automated way to "copy" the task to each server or you're just saying that once I have copied the folder to each server I can use the task scheduler to setup the individual jobs?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
wmeerzaCommented:
Perhaps have a look at this previous question:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_21793115.html?sfQueryTermInfo=1+2003+command+remot

It will give you some info on running jobs remotely (perhaps you can shcedule the task on the main server that runs the jobs remotely).
0
 
LVNeptuneCommented:
I haven't had to implement it manually as I use Level Platforms at my office but my idea was this:

copy.bat

copy \\SERVER\c$\windows\tasks\taskname.job \\workstation\c$\windows\tasks\

Make a little more sense? You create the task on the server then create a batch file that copies the file to the workstations. I am not a batch file guru but if your workstations are named WRK1-WRK20 I am sure you can use a variable and increase it so you don't need to manually type out the workstation names.
0
 
bnditAuthor Commented:
I noticed your handle has "MVP", are you a Microsoft MVP?
0
All Courses

From novice to tech pro — start learning today.