1

I made several bat files using task scheduler(custom) and I need to apply these to all of my 70 server computers. Obviously I don't want to repeat the same procedure at every server.

Can I simply copy and paste my bat files to different computers and expect same result?

If so, where are my bat files and where should I paste them?

piet.t
  • 11,718
  • 21
  • 43
  • 52
  • My Task Scheduler on windows 10 requires me to browse to the file location after selecting when I want the task to start. That's how I find my files – Jonas Aug 31 '16 at 06:11

1 Answers1

0

Simply copy your batch files to different servers. This post here shows location of task scheduler.


Folder location:

%systemroot%\System32\Tasks

Registry:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Taskcache\Tasks
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Taskcache\Tree

You may want to try the xcopy and for command to send your batch file to all servers.

Command syntax:

FOR command can loop through your server names, and XCOPY copys the batch script to the other servers.

for %%G in (serverA
            serverB
            serverC
            ...
            serverZ) do xcopy [source] [destination] [options]

Note that asterisks does not work as intended, since it works as a wildcard.

Community
  • 1
  • 1