PowerShell Logo Small

Enable-ScheduledTask



This is the built-in help made by Microsoft for the command 'Enable-ScheduledTask', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Enables a scheduled task.

SYNTAX


Enable-ScheduledTask [-InputObject] <CimInstance> [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Enable-ScheduledTask [-TaskName] <String> [[-TaskPath] <String>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Enable-ScheduledTask cmdlet enables a disabled scheduled task.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287546
Disable-ScheduledTask
Export-ScheduledTask
Get-ScheduledTask
New-ScheduledTask
Register-ScheduledTask
Set-ScheduledTask
Start-ScheduledTask
Stop-ScheduledTask
Unregister-ScheduledTask
Get-ScheduledTaskInfo

REMARKS

<

Examples


Example 1: Enable a scheduled task

PS C:\> Enable-ScheduledTask -TaskName "SystemScan"
TaskPath TaskName State
-------- -------- --------
\ SystemScan Ready



This command enables the SystemScan task in the root folder.




Example 2: Enable all scheduled tasks in a folder

PS C:\> Get-ScheduledTask -TaskPath "\UpdateTasks\" | Enable-ScheduledTask
TaskPath TaskName State
-------- -------- --------
\UpdateTasks\ UpdateApps Ready
\UpdateTasks\ UpdateDrivers Ready



This command uses the Get-Scheduledtask cmdlet to get all scheduled tasks in the \UpdateTasks\ folder. It pipes this information to the Enable-ScheduledTasks cmdlet,
which enables these scheduled tasks.