Courseiva
Manage and maintain deviceseasyMultiple ChoiceObjective-mapped

MD-102 Manage and maintain devices Practice Question

You are managing Windows 10 devices with Intune. You need to deploy a PowerShell script that runs under the system context during device enrollment. Which approach should you use?

⚠ Common exam trap

Watch out — candidates often confuse the 'PowerShell scripts' feature with proactive remediations or custom configuration profiles, not realizing that only the dedicated PowerShell script deployment runs under the system context during enrollment.

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

Upload the script as a PowerShell script in Intune and assign it to the device group.

Intune's 'PowerShell scripts' feature allows you to upload and assign scripts that run under the system context during device enrollment, specifically targeting devices in a group. This is the only native Intune method that executes scripts in the system context at enrollment time without 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.

  • Deploy the script as a proactive remediation.

    Why it's wrong here

    Proactive remediations run on a schedule, not during enrollment.

  • Use a device compliance policy to trigger the script.

    Why it's wrong here

    Compliance policies do not execute scripts.

  • Create a custom configuration profile to run the script.

    Why it's wrong here

    Configuration profiles are for settings, not for running scripts.

  • Upload the script as a PowerShell script in Intune and assign it to the device group.

    Why this is correct

    Intune PowerShell scripts can run in system context and execute during enrollment.

About these practice questions

One of 942 original MD-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 MD-102 practice question is part of Courseiva's free Microsoft 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 MD-102 exam.