NAME
Enable-ScheduledTask
SYNOPSIS
Enables a scheduled task.SYNTAX
Enable-ScheduledTask [-CimSession
] [-ThrottleLimit ] [ ] Enable-ScheduledTask [-TaskName]
[[-TaskPath] ] [-CimSession ] [-ThrottleLimit ] [ ] DESCRIPTION
The Enable-ScheduledTask cmdlet enables a disabled scheduled task.
PARAMETERS
-CimSession [
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such] as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local
computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false-TaskName
Specifies the name of a scheduled task. Required? true Position? 1 Default value none Accept pipeline input? false Accept wildcard characters? false-TaskPath [
Specifies the path for a scheduled task in Task Scheduler namespace. You can use \ for the root folder. If you do not specify a path, the cmdlet uses the root folder. Required? false Position? 2 Default value none Accept pipeline input? false Accept wildcard characters? false] -ThrottleLimit [
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. Required? false Position? named Default value none Accept pipeline input? false Accept wildcard characters? false] This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
OUTPUTS
Microsoft.Management.Infrastructure.CimInstance#MSFT_ScheduledTaskExample 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 ReadyThis 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.
RELATED LINKS
Online Version:Disable-ScheduledTask
Export-ScheduledTask
Get-ScheduledTask
New-ScheduledTask
Register-ScheduledTask
Set-ScheduledTask
Start-ScheduledTask
Stop-ScheduledTask
Unregister-ScheduledTask