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

Windows exports all scheduled task methods

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The command for windows to schedule tasks is: schtasks

SCHTASKS / parameter [arguments]

Description:

Allows administrators to create, delete, query, change, run, and abort plans on local or remote systems

Business.

Parameter list:

/ Create creates a new scheduled task.

/ Delete deletes the scheduled task.

/ Query displays all scheduled tasks.

/ Change changes the scheduled task properties.

/ Run runs scheduled tasks on demand.

/ End aborts the currently running scheduled task.

/ ShowSid displays the security identifier corresponding to the scheduled task name.

/? This help message is displayed.

Examples:

SCHTASKS

SCHTASKS /?

SCHTASKS / Run /?

SCHTASKS / End /?

SCHTASKS / Create /?

SCHTASKS / Delete /?

SCHTASKS / Query /?

SCHTASKS / Change /?

SCHTASKS / ShowSid /?

SCHTASKS / QUERY /?

SCHTASKS / Query [/ S system [/ U username [/ P [password]

[/ FO format | / XML [xml_type]] [/ NH] [/ V]

[/ TN taskname] [/ HRESULT] [/?]

Description:

Allows administrators to display scheduled tasks on local or remote systems.

Parameter list:

/ S system specifies the remote system to connect to.

/ U username specifies the user context to be executed by schtasks.exe.

/ P [password] specifies the given user context password. If omitted, prompt for input.

/ FO format specifies the format for the output. Valid values: TABLE, LIST, CSV.

/ NH specifies that column headers are not displayed in the output.

Valid only for TABLE format.

Only available in TABLE and CSV formats.

/ V displays detailed task output.

/ TN taskname specifies the task path whose information you want to retrieve\ name

Otherwise, information for all tasks will be retrieved.

/ XML [xml_type] displays the task definition in XML format.

If xml_type is ONE, the output is a valid XML file. If xml_type does not exist, the output will be concatenated for all XML tasks.

/ HRESULT handles exit codes for better troubleshooting capabilities

The HRESULT format will be used.

/? This help message is displayed.

Execute under the command line:

Schtasks / query / NH / FO csv / V > schtasks_result.txt

The export result is shown in the figure:

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