Courseiva
mediumMatchingObjective-mapped

MD-102 Practice Question: Match each PowerShell cmdlet to its function in…

Match each PowerShell cmdlet to its function in Microsoft 365 management.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Connect to Microsoft Graph using delegated or app-only auth

Retrieve Intune-managed devices

Create a new device configuration policy

Update properties of a managed device

Retire a device from 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

Get-MgUser: Retrieves all users

PowerShell is used for programmatic management; these cmdlets are from Microsoft Graph PowerShell SDK.

Answer analysis

Option-by-option breakdown

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

  • Get-MgUser: Retrieves all users

    Why this is correct

    Get-MgUser is used to list users in Microsoft 365.

  • Get-MgGroup: Retrieves all groups

    Why this is correct

    Get-MgGroup is used to list groups.

  • Get-MgDevice: Retrieves all devices

    Why this is correct

    Get-MgDevice is used to list devices.

  • Update-MgUser: Modifies user properties

    Why this is correct

    Update-MgUser is used to update user attributes.

  • Get-MgUser: Modifies user properties

    Why it's wrong here

    Incorrect — Get-MgUser retrieves users, does not modify them.

  • Update-MgUser: Retrieves all users

    Why it's wrong here

    Incorrect — Update-MgUser modifies users, not retrieves them.

About these practice questions

This MD-102 question is part of Courseiva's 942-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 →

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.