MD-102 Manage and maintain devices Practice Question
Your organization uses Microsoft Intune to manage Windows 10 devices. You need to deploy a PowerShell script that runs at every device startup to map network drives based on the user's security group membership. The script should run in the system context and should not require user interaction. How should you configure the script deployment in Intune?
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 PowerShell script as a Windows PowerShell script in Intune, set the execution context to 'System', and configure the script to run at device startup.
Intune allows PowerShell scripts to run in the system context and be configured to run at device startup, fulfilling the requirement. Option A is incorrect because assigning the script to users and running at user logon does not run in the system context and requires user interaction. Option B is incorrect because Proactive remediations run on a schedule or on demand, not at startup. Option D is incorrect because device configuration profiles cannot execute scripts directly.
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 script as a Windows PowerShell script in Intune and assign it to users, so it runs when users log in.
Why it's wrong here
The script needs to run at startup, not at user login.
- ✗
Use Proactive remediations in Intune to run the script on a schedule.
Why it's wrong here
Proactive remediations are for detection and remediation, not for running scripts at startup.
- ✓
Add the PowerShell script as a Windows PowerShell script in Intune, set the execution context to 'System', and configure the script to run at device startup.
Why this is correct
Intune PowerShell scripts can run in system context and at startup.
- ✗
Create a device configuration profile that includes the script as a custom setting.
Why it's wrong here
Device configuration profiles do not support running scripts.
Go deeper
Related to this question
Learn chapter
Introduction to Endpoint Management in Microsoft 365
Key term
Device configuration
Device configuration is the process of setting up and customizing the operating system, security policies, applications, and network settings on a device so it can securely connect to and function within an organization's IT environment.
Key term
Windows 10
Windows 10 is a personal computer operating system developed by Microsoft that combines the familiarity of Windows 7 with the modern features of Windows 8, designed to run on a wide range of devices from desktops to tablets.
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 →
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.