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

Example Analysis of At,Schtask and Eventtriggers commands under WinXP

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

Share

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

Editor to share with you the example analysis of At,Schtask and Eventtriggers commands under WinXP. I hope you will get something after reading this article. Let's discuss it together.

The AT and schtask (schedule task) commands are based on the task plan of the command line. The eventuals (eventtriggers) command is the Event (event) trigger (trigger), which runs when the log of the event generated by the system meets the condition of the event trigger, and the log of the event generated by the system depends on the "Event log" service. Use the event Viewer eventvwr.msc or eventvwr.exe to view and manage event logs, gather information about hardware and software issues, and monitor Windows security events.

The default at runs the at task as the system user account. To run the at task as its user account, click start, point to all programs, point to attachments, point to system tools, click Task Plan, click the advanced button on the menu bar, AT service account, set account and password. As a matter of fact, there are many ways to open mission planning.

AT instance Note: am means morning, pm means afternoon, 5:00pm is the same as 17:00, 17:00am is the same as 5:00.

AT creates a Schedlgu.txt file in% windir%\ to view the execution of scheduled tasks.

Example1:

Show help

At /?

Help at

Example:2

Schedule Monday, Tuesday, Thursday, Friday, Saturday, Sunday, December 23, at 17:00 in the afternoon to execute notepad.exe to interact with the user's desktop.

C:\ > at 5:00pm / interactive / every:monday,tuesday,wednesday,thursday,friday,satur

Day,sunday,12,23 notepad.exe

Example3

The execution plan next month will not interact with the user's desktop. Implemented at 17:00 on Tuesday, Monday 12th

C:\ > at 17:00 / next:m,12,t notepad.exe

Example:4

View scheduled tasks

At

At 1

Example:5

Delete a scheduled command

At / delete / yes

At / delete

At 1 / delete

Execute AT commands on other machines in the local area network.

Establish an ipc$ connection first. Machine name: Z-62C2385F578E4

C:\ > net use\\ Z-62C2385F578E4\ ipc$ windows / user:administrator

The command completed successfully.

View Z-62C2385F578E4 scheduled tasks

C:\ > at\\ Z-62C2385F578E4

There are no entries in the list.

C:\ > at\\ Z-62C2385F578E4 5:00pm / every:monday "% programfiles%\ internet explorer\ iexplore.exe"

Added a new job with job ID = 1

Carry out the planned task on the same day

C:\ > at\\ Z-62C2385F578E4 22:48 / every: notepad.exe

Added a new job with job ID = 1

View Z-62C2385F578E4 scheduled task id 1

C:\ > at\\ Z-62C2385F578E4 1

Task ID: 1

Status: OK

Schedule: Each 26

Time of day: 22:48 PM

Interactive: No

Command: notepad.exe

End scheduled tasks that are already running. Such as the notepad.exe above

C:\ > taskkill / s Z-62C2385F578E4 / u administrator / p windows / im notepad.exe

SUCCESS: The process "notepad.exe" with PID 1744 has been terminated.

Delete the above command

C:\ > at\\ 169.254.100.225 1 / delete

Or C:\ > at\\ Z-62C2385F578E4 1 / delete

Or C:\ > at\\ Z-62C2385F578E4 / delete / yes

Disconnect\\ Z-62C2385F578E empty connection.

C:\ > net use\\ Z-62C2385F578E4 / delete

\\ Z-62C2385F578E4 was deleted successfully.

After reading this article, I believe you have some understanding of "sample Analysis of At,Schtask and Eventtriggers commands under WinXP". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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