Bird
0
0

Which of these is a required component when creating a scheduled task to run a PowerShell script?

easy📝 Conceptual Q2 of 15
PowerShell - Automation Patterns
Which of these is a required component when creating a scheduled task to run a PowerShell script?
AThe script must be saved as a .exe file.
BOnly the script file name without path.
CThe full path to the PowerShell executable and the script file.
DA graphical user interface for the script.
Step-by-Step Solution
Solution:
  1. Step 1: Identify what Task Scheduler needs

    It needs the full path to the program and script to run it correctly.
  2. Step 2: Check options

    Only The full path to the PowerShell executable and the script file. provides full paths; others miss required details or add wrong requirements.
  3. Final Answer:

    The full path to the PowerShell executable and the script file. -> Option C
  4. Quick Check:

    Full path required [OK]
Quick Trick: Always specify full paths for executables and scripts [OK]
Common Mistakes:
  • Using only script name without path
  • Thinking scripts must be .exe files
  • Expecting GUI for scheduled scripts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes