Task Schedule on remote computers

I would like to schedule a task on a few remote computers in our office. I need this task to run once, at 1am on Thursday morning. Here is the script I have
schtasks /create /sc ONCE /tn Product Name /tr C:\Installs\Program.bat/ st 01:00:00 /THU

I am saving this script as a batch file. When I double click the batch file, I don't see any tasks scheduled on my test  machine. Am I missing something?


Darren
shfisbAsked:
Who is Participating?
 
dmcgurimanCommented:
personally I would use psexec with a txt file that has a list of all the computer names

psexec @C:\TEMP\list.csv -s schtasks /create /sc ONCE /tn Product Name /tr C:\Installs\Program.bat/ st 01:00:00 /THU something like that, there are examples all over the internets
0
 
dmcgurimanCommented:
I dont see /s %computername% without that it wont run on the remote computer
0
 
shfisbAuthor Commented:
If I am running it on multiple computers, would I just use the %computername% command, or do I have to specify each computer I am running it on?
0
 
shfisbAuthor Commented:
Well, this is interesting.
Here's my script I'm running on one particular computer:
schtasks /create /sc ONCE /tn 1803Upgrade /tr C:\Installs\1803Upgrade\1803launch.bat /s Computer Name /st 01:00:00 /THU

When I run this as an admin, it does not show up in the Scheduled Tasks on the test computer.
Not sure why this is kicking my butt

Darren
0
 
shfisbAuthor Commented:
We will go ahead and schedule the upgrade after hours.
Thank you all for the help

Darren
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.