Courseiva
mediumMultiple ChoiceObjective-mapped

220-1102 Practice Question: During a software deployment, you need to create…

During a software deployment, you need to create a script that runs automatically every time a user logs into their Windows 10 domain-joined computer. Which tool should you use to configure this task?

⚠ Common exam trap

CompTIA often tests the distinction between tools that configure local machine behavior (Task Scheduler) versus tools that manage domain-wide policies (Group Policy Management Console), leading candidates to mistakenly choose GPMC for a local logon script task.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Task Scheduler

Task Scheduler is the correct tool because it allows you to create a task that triggers on a specific event, such as user logon. You can set the trigger to 'At log on' for any user or a specific user, and the task will run automatically each time the user logs into the Windows 10 domain-joined computer. This is the native Windows mechanism for scheduling scripts or programs to run at logon without requiring additional configuration.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Task Scheduler

    Why this is correct

    Task Scheduler is the most appropriate Windows utility for creating a scheduled task that automatically executes a script for any user upon logon. It provides granular control over triggers, allowing for specific conditions like "At log on" for any user or a specific user, and can run with various privilege levels. This flexibility makes it ideal for reliably deploying per-user scripts that need to run during a software deployment, ensuring consistent execution.

  • Group Policy Management Console

    Why it's wrong here

    The Group Policy Management Console (GPMC) is a powerful administrative tool specifically designed for centralized configuration and deployment of settings and scripts across an Active Directory domain. While it can deploy logon scripts via Group Policy Objects (GPOs), its functionality is entirely dependent on a domain infrastructure. It is not applicable for setting up a local, per-user script on a standalone machine or in an environment without an Active Directory domain.

  • Local Group Policy Editor

    Why it's wrong here

    The Local Group Policy Editor (gpedit.msc) allows for configuring policies on a standalone computer, including assigning logon scripts for users or startup scripts for the computer. However, it offers significantly less flexibility than Task Scheduler regarding trigger conditions, execution context, and advanced error handling. While it can assign a basic logon script, Task Scheduler provides more robust and customizable options for ensuring a script runs reliably under specific per-user conditions during a software deployment.

  • Windows PowerShell ISE

    Why it's wrong here

    Windows PowerShell Integrated Scripting Environment (ISE) is an interactive development environment primarily used for authoring, testing, and debugging PowerShell scripts. It features syntax highlighting, tab completion, and a console for immediate command execution, facilitating script creation and refinement. However, the ISE itself is purely a development tool and does not possess any built-in functionality for scheduling or automatically executing scripts; it cannot deploy or trigger scripts.

About these practice questions

Courseiva writes every 220-1202 question from scratch — 495 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 220-1202 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 220-1202 exam.