MD-102 Manage and maintain devices Practice Question
You are responsible for managing Windows 10 devices with Microsoft Intune. You need to deploy a new line-of-business (LOB) app to a group of devices. The app requires a script to run after installation to configure settings. What should you use to deploy the app and ensure the script runs?
⚠ Common exam trap
Many exam-takers confuse detection rules with post-installation scripts; detection rules only check for app presence, not run configuration logic.
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
✓
Add the app as a Win32 app and include the script in the install command.
Win32 apps in Intune support custom install commands, allowing you to run additional scripts after the main installer. By appending the script execution to the install command, you ensure it runs immediately after installation. This is a common method for configuring LOB apps that require post-installation steps. Other options like requirement or detection rules are not designed for executing configuration scripts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Add the app as a Win32 app and include the script in the install command.
Why this is correct
For Win32 apps in Intune, you can specify an install command that runs the installer. You can chain a configuration script by using a command line that executes the installer and then the script, for example: `setup.exe /silent && powershell.exe -File config.ps1`. This ensures the script runs after installation completes, fulfilling the requirement.
- ✗
Add the app as a Win32 app and include the script as a detection rule.
Why it's wrong here
Detection rules are used to verify whether the app is already installed. They do not run post-installation configuration scripts. If you put a script in detection rules, it would run periodically to check presence, but not as a one-time configuration after install. This would not achieve the desired outcome.
- ✗
Add the app as a Microsoft Store app and use a PowerShell script to configure settings.
Why it's wrong here
Microsoft Store apps (now Microsoft Store apps) are deployed via the Store and do not support custom install commands or post-installation scripts. You would need to deploy a separate PowerShell script using the Intune Management Extension, but that would not be tied to the app installation and may run at a different time. This approach does not guarantee the script runs after the app installs.
- ✗
Add the app as a Win32 app and include the script as a requirement rule.
Why it's wrong here
Requirement rules are used to determine if a Win32 app should be installed on a device, not to run post-installation scripts. They check conditions like OS version, disk space, or registry keys. Placing a configuration script in requirement rules would not execute it after installation; it would only affect installation eligibility.
Go deeper
Related to this question
Learn chapter
Introduction to Endpoint Management in Microsoft 365
Key term
Microsoft Intune
Microsoft Intune is a cloud-based service that helps organizations manage employee devices, apps, and security policies without needing to own or control the physical hardware.
Key term
Intune
Microsoft Intune is a cloud-based service that helps organizations manage their users' devices and applications, ensuring security and compliance without needing to own or control the physical hardware.
About these practice questions
This MD-102 question is part of Courseiva's 556-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.