• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 608
  • Last Modified:

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.
0
HilltownHealthCenter
Asked:
HilltownHealthCenter
  • 2
1 Solution
 
mastooCommented:
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.
0
 
zwseemmCommented:
Run this under the command prompt and it will show you all the options.

schtasks /?
0
 
mastooCommented:
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.
0
 
HilltownHealthCenterAuthor Commented:
I love this site!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now