Bird
0
0

You scheduled a PowerShell script to run daily at 8 PM, but it never executes. Which of the following is the most probable cause?

medium📝 Debug Q6 of 15
PowerShell - Automation Patterns
You scheduled a PowerShell script to run daily at 8 PM, but it never executes. Which of the following is the most probable cause?
AThe task trigger is set to daily at 8 PM
BThe script file is located in a directory accessible to all users
CThe task is configured to run with highest privileges
DThe task is set to run only when the user is logged on, but the user is logged off at 8 PM
Step-by-Step Solution
Solution:
  1. Step 1: Analyze task conditions

    If the task is set to run only when user is logged on, it won't run if user is logged off.
  2. Step 2: Check other options

    Options B, C, and D do not prevent execution; only A explains failure.
  3. Final Answer:

    The task is set to run only when the user is logged on, but the user is logged off at 8 PM -> Option D
  4. Quick Check:

    Task requires user logged on to run [OK]
Quick Trick: Check if task requires user logon to run [OK]
Common Mistakes:
  • Assuming script location causes failure
  • Believing highest privileges block execution
  • Ignoring trigger settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes