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
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
I dont see /s %computername% without that it wont run on the remote computer
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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\18 03launch.b at /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
Here's my script I'm running on one particular computer:
schtasks /create /sc ONCE /tn 1803Upgrade /tr C:\Installs\1803Upgrade\18
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
ASKER
We will go ahead and schedule the upgrade after hours.
Thank you all for the help
Darren
Thank you all for the help
Darren