Courseiva
Protect devices →mediumMultiple Choice

MD-102 Protect devices Practice Question

You are deploying a new line-of-business app to 500 Windows 11 devices using Microsoft Intune. The app requires a specific PowerShell script to run after installation to configure registry settings. You need to ensure the script runs only after the app is successfully installed and that it does not require user interaction. What should you do?

⚠ Common exam trap

The trap here is assuming that Intune PowerShell script policies can be triggered by app installation events or that dependencies can be scripts, leading to unreliable sequencing.

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

✓

Package the app and script together as a Win32 app with a custom installation command that runs the script after the installer.

To run a PowerShell script after app installation without user interaction, you should package both as a Win32 app. The Win32 app deployment in Intune allows you to specify a custom installation command that can run the installer and then execute the script. This ensures the script runs in the system context after the app is installed. Other methods like dependencies or separate script policies do not provide the required sequencing.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Package the app and script together as a Win32 app with a custom installation command that runs the script after the installer.

    Why this is correct

    Packaging the app and script as a Win32 app allows you to define a custom installation command that can execute the installer followed by the PowerShell script. Intune runs the command as SYSTEM, and you can ensure the script runs only after successful installation by chaining commands with conditional execution. This meets the requirement without user interaction.

  • ✗

    Use a platform script that runs during device enrollment.

    Why it's wrong here

    Platform scripts run during enrollment or on a schedule, not after a specific app installation. They are not tied to app deployment and would not guarantee execution after the app is installed. This method is unsuitable for post-install configuration.

  • ✗

    Add the PowerShell script as a dependency to the app.

    Why it's wrong here

    Dependencies in Intune are used to install other applications before the main app, not to run scripts. You cannot add a PowerShell script as a dependency; dependencies must be other apps. This would not achieve running a script after installation.

  • ✗

    Deploy the script using a separate PowerShell script policy and set it to run after the app is installed.

    Why it's wrong here

    Intune PowerShell script policies do not have a native trigger to run only after a specific app installation. They run on a schedule or on demand, and you cannot guarantee they execute after the app install without complex detection logic. This approach is unreliable for the requirement.

About these practice questions

One of 556 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

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.