Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Disable-ScheduledJob

Disable-ScheduledJob - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Disables a scheduled job

Disable-ScheduledJob [-InputObject] <ScheduledJobDefinition> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Disable-ScheduledJob [-Id] <Int32> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
Disable-ScheduledJob [-Name] <String> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

The Disable-ScheduledJob cmdlet temporarily disables scheduled jobs. Disabling preserves all job properties and does no
t disable the job triggers, but it prevents the scheduled jobs from starting automatically when triggered. You can star
t a disabled scheduled job by using the Start-Job cmdlet or use a disabled scheduled job as a template.

To disable a scheduled job, the Disable-ScheduledJob cmdlet sets the Enabled property of the scheduled job to False ($f
alse). To re-enable the scheduled job, use the Enable-ScheduledJob cmdlet.

Disable-ScheduledJob is one of a collection of job scheduling cmdlets in the PSScheduledJob module that is included in 
Windows PowerShell.

For more information about Scheduled Jobs, see the About topics in the PSScheduledJob module. Import the PSScheduledJob
 module and then type: Get-Help about_Scheduled* or see about_Scheduled_Jobs.

This cmdlet is introduced in Windows PowerShell 3.0.