We help IT Professionals succeed at work.

Possible to script a scheduled task for easy distribution?

I want to distribute a  batch file to run on workstations after hours. To do it manually, I would have to go to each workstation,  import the script and then run the task scheduler.

Can I set up the task scheduler using a script? My plan then would be to distribute the two scripts (scheduler and batch file) and have each user execute the scheduler script to put it all in place.
Watch Question

schtasks can do everything from a command prompt or in a batch file.  In fact, it can operate on remote computers so you might avoid running a script on each one.

Run this under the command prompt and it will show you all the options.

schtasks /?

Sorry I didn't read your post close enough.  You could do the scheduling remotely but you either need to distribute the batch file or have it accessible on the network.
I love this site!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.