Link to home
Start Free TrialLog in
Avatar of shfisb
shfisb

asked on

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
Avatar of Dave McGuriman
Dave McGuriman
Flag of United States of America image

I dont see /s %computername% without that it wont run on the remote computer
Avatar of shfisb
shfisb

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Dave McGuriman
Dave McGuriman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shfisb

ASKER

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
Avatar of shfisb

ASKER

We will go ahead and schedule the upgrade after hours.
Thank you all for the help

Darren