Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
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?
AStart-ScheduledTask
BRegister-ScheduledTask
CGet-ScheduledTask
DNew-ScheduledTaskTrigger
✗ 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?
AList-ScheduledTask
BGet-ScheduledTask
CShow-ScheduledTask
DFind-ScheduledTask
✗ Incorrect
Get-ScheduledTask is the correct cmdlet to list scheduled tasks.
Which cmdlet disables a scheduled task so it won't run?
ARemove-ScheduledTask
BStop-ScheduledTask
CDisable-ScheduledTask
DPause-ScheduledTask
✗ 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?
A-Confirm:$false
B-Force
C-NoPrompt
D-Silent
✗ Incorrect
The -Confirm:$false parameter suppresses the confirmation prompt when unregistering a task.
Which cmdlet runs a scheduled task immediately?
AStart-ScheduledTask
BInvoke-ScheduledTask
CRun-ScheduledTask
DExecute-ScheduledTask
✗ 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.
Practice
(1/5)
1. What is the main purpose of a scheduled task in PowerShell?
easy
A. To monitor system performance continuously
B. To manually execute scripts only when needed
C. To run scripts or programs automatically at specific times
D. To edit files in the system
Solution
Step 1: Understand scheduled task purpose
Scheduled tasks are designed to automate running scripts or programs without manual intervention.
Step 2: Compare options
Only To run scripts or programs automatically at specific times describes automatic execution at set times, which matches scheduled tasks.
Final Answer:
To run scripts or programs automatically at specific times -> Option C
Quick Check:
Scheduled tasks automate running scripts [OK]
Hint: Scheduled tasks run automatically on a schedule [OK]
Common Mistakes:
Confusing scheduled tasks with manual script runs
Thinking scheduled tasks monitor system performance
Assuming scheduled tasks edit files automatically
2. Which PowerShell cmdlet is used to create a new scheduled task trigger?
easy
A. New-ScheduledTaskTrigger
B. New-ScheduledTaskAction
C. Register-ScheduledTask
D. Get-ScheduledTask
Solution
Step 1: Identify cmdlet for trigger creation
The cmdlet New-ScheduledTaskTrigger is specifically used to define when a scheduled task should run.
Step 2: Differentiate from other cmdlets
New-ScheduledTaskAction defines what runs, Register-ScheduledTask registers the task, and Get-ScheduledTask retrieves tasks.