Get the App
SLTechnology News&Howtos  ›  Servers  › 

Examples of the usage of At,Schtask and Eventtriggers commands under WinXP

Shulou Source: shulou.com Published: 2022-06-01 02:39:11 09月22日 Update

This article mainly shows you "examples of the usage of At,Schtask and Eventtriggers commands under WinXP". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn "examples of the usage of At,Schtask and Eventtriggers commands under WinXP".

View scheduled tasks

Schtasks

Schtasks / query

View mode details

Schtasks / query / v

Schtasks / query / v / fo list

Comma separated list

Schtasks / query / v / fo csv

The list is separated by commas and the title is not displayed.

Schtasks / query / v / fo csv / nh

Schtasks / query / v / fo / nh

Schtasks / query / v / fo csv / nh

C:\ > schtasks / query / s 169.254.100.225 / u administrator / p windows

INFO: There are no scheduled tasks present in the system.

Create a scheduled task using the / create parameter

Every 24 hours

Schtasks / create / tn Mytask / tr notepad.exe / sc hourly / ru zly / rp windows

Specify every 12 hours

Schtasks / create / tn mytask / tr notepad.exe / sc hourly / ru zly / rp windows / mo 12

Schtasks / create / tn mytask / tr write.exe / sc hourly / ru zly / rp windows / mo 23 / sd 2008-09-09 / ed 2009-09-09 / st 20:00:00

C:\ > schtasks / create / tn Mytask / tr notepad.exe / sc hourly / mo 12 / st 08:00:00 /

Sd 2007-07-07 / ed 2007-08-09 / ru zly / rp windows

SUCCESS: The scheduled task "Mytask" has successfully been created.

C:\ > schtasks / delete / tn Mytask / f

SUCCESS: The scheduled task "Mytask" was successfully deleted.

Every 30 days

C:\ > schtasks / create / tn Mytask / tr mmc.exe / sc daily / mo 30 / sd 2007-02-28 / ed

2007-12-31 / st 20:00:00 / ru zly / rp windows

Every 30 weeks

C:\ > schtasks / create / s 169.254.100.225 / u administrator / p windows / tn RemoteTe

St / tr notepad.exe / sc weekly / mo 30 / ru administrator / rp windows

SUCCESS: The scheduled task "RemoteTest" has successfully been created.

Every 50 weeks

C:\ > schtasks / create / tn Mytask / tr "% systemdrive%\ internet explorer\ iexplore.ex

E "/ sc weekly / mo 50 / sd 2007-08-09 / ed 2007-08-10 / ru zly / rp windows

The task runs once on the specified date and time

C:\ > schtasks / create / tn Mytask / tr notepad.exe / sc once / st 20:00:00 / sd 2007 /

9/09 / ru zly / rp windows

Every time the system starts up, the task

C:\ > schtasks / create / tn Mytask / tr notepad.exe / sc onstart / ru zly / rp windows

Whenever a user (any user) logs in

C:\ > schtasks / create / tn Mytask / tr notepad.exe / sc onlogon / ru zly / rp windows

Run a screensaver in the idle 10 minutes.

C:\ > schtasks / create / tn Mytask / tr "% windir%\ system32\ logon.scr / s" / sc onidle

/ i 10 / ru zly / rp windows

Change the scheduled--- above to the order and account of a task (administrator)

C:\ > schtasks / change / tn Mytask / tr write.exe / ru administrator / rp xxxxxx

Change the order of a task and account (system) Note that a restricted account changes to a system account and the task does not work, see Group Policy-user Rights assignment. Only administrators groups (default)

C:\ schtasks / change / tn Mytask / tr write.exe / ru system

Run a task

C:\ schtasks / run / tn Mytask

End a mission

C:\ schtasks / end / tn Mytask

Delete all tasks

C:\ schtasks / delete / tn * / f

Run and terminate remote scheduled tasks immediately

C:\ > schtasks / run / s 169.254.100.225 / u administrator / p windows / tn remotetest

SUCCESS: Attempted to run the scheduled task "remotetest".

C:\ > schtasks / end / s 169.254.100.225 / u administrator / p windows / tn remotetest

SUCCESS: The scheduled task "remotetest" has been terminated successfully.

Forget that empty passwords cannot run scheduled tasks by default, want empty passwords to run scheduled tasks, gpedit.msc- local policy-security settings-local accounts with blank passwords are only allowed to log on to the console. Enabling disable may pose a security risk if you do not set a password.

The above is all the contents of the article "examples of the usage of At,Schtask and Eventtriggers commands under WinXP". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Tasks runs passwords accounts commands examples content time users articles security hours policies commas learning help login information parameters only Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker macOS Redmi Apple NVidia