Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report