networking - Scheduling task on remote computer via command line -
i want make sure i'm doing right thing.
i want run script distributes software silently, system account, maximum rights. callfile.bat contains full command install software package server path, ex.: \\server2\script_to_install_software.cmd
here have, make sense or missing something?
1-create task:
schtasks /create /s computername /tn "testtask" /tr "\\server1\c$\temp\callfile.bat" /sc once /sd 2030/01/01 /st 01:00 /ru system /rl highest
2-run it:
schtasks /run /s computername /tn "testtask"
3-after runs successfully, delete it:
schtasks /delete /s computername /tn "testtask" /f
as thank time!
Comments
Post a Comment