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.
HilltownHealthCenterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.