Recall & Review
beginner
What PowerShell cmdlet is used to create a new scheduled task?The cmdlet <code>Register-ScheduledTask</code> is used to create and register a new scheduled task in PowerShell.Click to reveal answer
beginner
How do you list all scheduled tasks on a Windows machine using PowerShell?
Use the cmdlet <code>Get-ScheduledTask</code> to retrieve a list of all scheduled tasks on the system.Click to reveal answer
intermediate
What is the purpose of
New-ScheduledTaskTrigger in PowerShell?It creates a trigger object that defines when the scheduled task will run, such as at logon, daily, or at a specific time.
Click to reveal answer
intermediate
How can you disable a scheduled task using PowerShell?
Use
Disable-ScheduledTask -TaskName 'TaskName' to disable a scheduled task so it won't run until enabled again.Click to reveal answer
intermediate
What cmdlet would you use to remove a scheduled task permanently?The cmdlet <code>Unregister-ScheduledTask -TaskName 'TaskName' -Confirm:$false</code> removes the scheduled task permanently without asking for confirmation.Click to reveal answer
Which cmdlet creates a new scheduled task trigger in PowerShell?
✗ Incorrect
New-ScheduledTaskTrigger creates the trigger that defines when the task runs. The others perform different actions.
How do you list all scheduled tasks on your computer using PowerShell?
✗ Incorrect
Get-ScheduledTask is the correct cmdlet to list scheduled tasks.
Which cmdlet disables a scheduled task so it won't run?
✗ Incorrect
Disable-ScheduledTask disables the task. Stop-ScheduledTask stops a running task but does not disable it.
What parameter is needed to remove a scheduled task without confirmation?
✗ Incorrect
The -Confirm:$false parameter suppresses the confirmation prompt when unregistering a task.
Which cmdlet runs a scheduled task immediately?
✗ Incorrect
Start-ScheduledTask runs the task immediately on demand.
Explain how to create a scheduled task in PowerShell that runs a script daily at 7 AM.
Think about triggers, actions, and registration steps.
You got /3 concepts.
Describe how to disable and then remove a scheduled task using PowerShell commands.
Focus on the cmdlets for disabling and unregistering.
You got /3 concepts.