使用英语阅读

通过


Scheduled Tasks Cmdlets in Windows PowerShell

Windows PowerShell® 是基于任务的命令行 shell 和脚本语言,专为系统管理而设计。本参考主题面向信息技术 (IT) 专业人员,可在利用 Windows PowerShell cmdlet 编写脚本和对任务实施自动化时提供协助。

Scheduled Tasks Cmdlets

This reference provides cmdlet descriptions and syntax for all Scheduled Tasks cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

Cmdlet Description

Disable-ScheduledTask

Disables a scheduled task.

Enable-ScheduledTask

Enables a scheduled task.

Export-ScheduledTask

Exports a scheduled task as an XML string.

Get-ClusteredScheduledTask

Gets clustered scheduled tasks for a failover cluster.

Get-ScheduledTask

Gets the task definition object of a scheduled task that is registered on the local computer.

Get-ScheduledTaskInfo

Gets run-time information for a scheduled task.

New-ScheduledTask

Creates a scheduled task instance.

New-ScheduledTaskAction

Creates a scheduled task action.

New-ScheduledTaskPrincipal

Creates an object that contains a scheduled task principal.

New-ScheduledTaskSettingsSet

Creates a new scheduled task settings object.

New-ScheduledTaskTrigger

Creates a scheduled task trigger object.

Register-ClusteredScheduledTask

Registers a scheduled task on a failover cluster.

Register-ScheduledTask

Registers a scheduled task definition on a local computer.

Set-ClusteredScheduledTask

Changes settings for a clustered scheduled task.

Set-ScheduledTask

Modifies a scheduled task.

Start-ScheduledTask

Starts one or more instances of a scheduled task.

Stop-ScheduledTask

Stops all running instances of a task.

Unregister-ClusteredScheduledTask

Removes a scheduled task from a failover cluster.

Unregister-ScheduledTask

Unregisters a scheduled task.

备注

To list all the cmdlets that are available, use the Get-Command -Module ScheduledTasks cmdlet.

有关任何 cmdlet 或其语法的详细信息,请使用 Get-Help <cmdlet 名称> cmdlet,其中 *<cmdlet 名称>*是你要搜索的 cmdlet 的名称。若需了解详细信息,可以运行以下任一 cmdlet:

Get-Help <cmdlet 名称> -Detailed
Get-Help <cmdlet 名称> -Examples
Get-Help <cmdlet 名称> -Full