Courseiva
Manage and maintain deviceshardMultiple ChoiceObjective-mapped

MD-102 Manage and maintain devices Practice Question

Your organization uses Microsoft Intune to manage devices. You need to deploy a PowerShell script that runs every time a user logs in to a Windows 10 device. The script must run with administrative privileges. Which deployment approach should you use?

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

Use Intune PowerShell scripts targeting the user, with a scheduled task triggered by logon.

Intune PowerShell scripts can be deployed to users and configured to run as the logged-on user. To run with administrative privileges and on every logon, a scheduled task triggered by logon can be created that runs the script with elevated rights. Option A is incorrect because deploying a PowerShell script as a Win32 app typically runs once per assigned device, not on every user logon. Option B is incorrect because proactive remediations run on a schedule (e.g., daily) and can detect/fix issues but are not triggered by user logon events. Option D is incorrect because custom compliance policies evaluate device settings for compliance and do not execute scripts on login.

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 script as a Win32 app and assign it as required.

    Why it's wrong here

    Win32 apps install once, not on every logon.

  • Deploy the script as a proactive remediation in Intune.

    Why it's wrong here

    Proactive remediations are scheduled, not triggered by user logon.

  • Use Intune PowerShell scripts targeting the user, with a scheduled task triggered by logon.

    Why this is correct

    Intune PowerShell scripts can run in user context; a scheduled task triggered at logon can elevate privileges.

  • Use a custom compliance policy to run the script.

    Why it's wrong here

    Custom compliance policies evaluate compliance, not run scripts on logon.

About these practice questions

Courseiva writes every MD-102 question from scratch — 942 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 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.