Windows exports all scheduled task methods

Source: Internet
Author: User
Tags schtasks

The commands for Windows Scheduled tasks are: schtasks

schtasks/parameter [arguments]


Describe:

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

Works

Parameter list:

/CREATE Create a new scheduled task.

/delete Delete a scheduled task.

/query Displays all scheduled tasks.

/change Change the scheduled task properties.

/run run Scheduled Tasks on demand.

/end abort the currently running scheduled task.

/SHOWSID Displays the security identifier corresponding to the scheduled task name.

/? Displays this help message.

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] [/?]

Describe:

Allows an administrator to display scheduled tasks on a local or remote system.

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 formatting for the output. Valid values: TABLE, LIST, CSV.

/NH specifies that column headings 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 \ Name to retrieve information for,

Otherwise, the information for all tasks is 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 task definitions.

/hresult to get better troubleshooting capabilities, process exit codes

The HRESULT format will be used.

/? Displays this help message.


Under command line execution:

SCHTASKS/QUERY/NH/FO csv/v > Schtasks_result.txt


Export results:

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/8E/02/wKioL1izl7vgr9bEAARX_YMaMeQ016.jpg-wh_500x0-wm_ 3-wmp_4-s_3425271896.jpg "title=" 1.jpg "alt=" Wkiol1izl7vgr9beaarx_ymameq016.jpg-wh_50 "/>




This article is from the "mask_x blog" blog, please be sure to keep this source http://zhpfbk.blog.51cto.com/4757027/1901582

Windows exports all scheduled task methods

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.