Bird
0
0

What information will the following command display if the scheduled task "WeeklyCleanup" exists?

medium📝 Command Output Q4 of 15
PowerShell - Automation Patterns
What information will the following command display if the scheduled task "WeeklyCleanup" exists?
schtasks /query /tn "WeeklyCleanup" /fo LIST
ADetailed properties of the "WeeklyCleanup" task including status, triggers, and next run time
BOnly the task name and next run time
CA list of all scheduled tasks on the system
DAn error stating the task does not exist
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    /query with /tn and /fo LIST queries a specific task and formats output as a detailed list.
  2. Step 2: Expected output

    It shows detailed info like status, triggers, last run time, next run time, and more.
  3. Final Answer:

    Detailed properties of the "WeeklyCleanup" task including status, triggers, and next run time -> Option A
  4. Quick Check:

    /fo LIST gives detailed info for specified task [OK]
Quick Trick: Use /fo LIST for detailed task info [OK]
Common Mistakes:
  • Expecting only task name and time
  • Thinking it lists all tasks
  • Assuming error if task exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes