echo off
SCHTASKS /Create /S MachineName /RU administrator /RP password /SC DAILY /MO 1 /TN TaskName /TR C:\batfileorapplocation\name.bat /ST 03:00:00 /SD 01/30/2009
pause
see SCHTASK /? for more information on other uses of SCHTASK
Subscribe to:
Post Comments (Atom)
I try to Run command:
ReplyDeleteSCHTASKS /Create /S MKT /RU administrator /RP P@ssword /SC DAILY /MO 1 /TN ABC /TR C:\name.bat
recieve an error:
Access is denied.
Pls help me how to fix it
Hello,
ReplyDeletePlease ensure that the user account you are logged on as when you run the command is an administrator of the remote machine.