Bird
0
0

You want to create a scheduled task that runs a PowerShell script with administrator privileges even if no user is logged in. Which settings and command options are necessary?

hard📝 Application Q9 of 15
PowerShell - Automation Patterns
You want to create a scheduled task that runs a PowerShell script with administrator privileges even if no user is logged in. Which settings and command options are necessary?
AUse schtasks /create with /ru guest and run only when user is logged on.
BUse schtasks /create with /ru SYSTEM and configure task to run with highest privileges.
CUse schtasks /create with /ru Administrator and disable highest privileges.
DUse schtasks /create with /ru user and require user to be logged on.
Step-by-Step Solution
Solution:
  1. Step 1: Identify user account for highest privileges

    Using SYSTEM account runs tasks with admin rights without user login.
  2. Step 2: Enable highest privileges setting

    Task must be set to run with highest privileges to elevate rights.
  3. Final Answer:

    Use schtasks /create with /ru SYSTEM and configure task to run with highest privileges. -> Option B
  4. Quick Check:

    /ru SYSTEM + highest privileges [OK]
Quick Trick: Use /ru SYSTEM and highest privileges for admin tasks without login [OK]
Common Mistakes:
  • Using guest or normal user accounts
  • Disabling highest privileges
  • Requiring user login unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes