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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

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
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

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
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
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
Microsoft Office

From novice to tech pro — start learning today.