Challenge - 5 Problems
Task Scheduler Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this PowerShell command to list scheduled tasks?
You run this command in PowerShell to list all scheduled tasks on your system:
What kind of output should you expect?
Get-ScheduledTask | Select-Object -First 1 | Format-List
What kind of output should you expect?
PowerShell
Get-ScheduledTask | Select-Object -First 1 | Format-ListAttempts:
2 left
💡 Hint
Think about what Format-List does and what Select-Object -First 1 returns.
✗ Incorrect
Get-ScheduledTask returns all tasks. Select-Object -First 1 picks the first task object. Format-List shows all properties of that object in detail.
📝 Syntax
intermediate2:00remaining
Which PowerShell command correctly creates a scheduled task to run a script daily at 7 AM?
You want to create a scheduled task that runs 'C:\Scripts\backup.ps1' every day at 7 AM. Which command is correct?
Attempts:
2 left
💡 Hint
Register-ScheduledTask is used to create the task in Task Scheduler. Check parameter names carefully.
✗ Incorrect
Register-ScheduledTask creates the task. The -TaskName parameter names it. The trigger and action are created with New-ScheduledTaskTrigger and New-ScheduledTaskAction. The -Argument parameter passes the script file path correctly.
🔧 Debug
advanced2:00remaining
Why does this scheduled task fail to run the script?
You created a scheduled task with this action:
But the script never runs. What is the problem?
New-ScheduledTaskAction -Execute "powershell.exe" -Argument "C:\Scripts\cleanup.ps1"
But the script never runs. What is the problem?
Attempts:
2 left
💡 Hint
Check how PowerShell expects script files to be passed as arguments.
✗ Incorrect
PowerShell requires the '-File' flag before the script path to run a script file. Without it, powershell.exe treats the argument as a command, causing failure.
🚀 Application
advanced2:30remaining
How to export and import a scheduled task using PowerShell?
You want to move a scheduled task named 'WeeklyReport' from one computer to another. Which sequence of commands correctly exports and imports the task?
Attempts:
2 left
💡 Hint
Get-Content with -Raw reads the entire XML as a single string needed for -Xml parameter.
✗ Incorrect
Export-ScheduledTask uses -Path to save XML. Register-ScheduledTask needs the XML as a single string, so Get-Content with -Raw is required. Option C correctly uses these.
🧠 Conceptual
expert1:30remaining
What is the effect of setting the 'RunLevel' property to 'Highest' in a scheduled task?
In Task Scheduler, you set the 'RunLevel' property of a task to 'Highest'. What does this do?
Attempts:
2 left
💡 Hint
Think about Windows User Account Control and task permissions.
✗ Incorrect
Setting RunLevel to Highest means the task runs with administrator rights, triggering elevation if required by UAC.