Skip to main content
  1. Public practice questions
  2. AB-650 Practice Exams | Microsoft 365 and AI Services Administrator Associate
  3. AB-650 Practice Exam 7

Question 23 — AB-650 Practice Exam 7

A PowerShell script has already imported a CSV containing existing Microsoft Entra users and is processing each record in a loop. Some records require department changes, while other records identify accounts that must be deleted. Which two Microsoft Graph PowerShell cmdlets perform these operations? (Select two answers)

  1. Get-MgUser

  2. Remove-MgUser

  3. New-MgUser

  4. Update-MgUser

Correct answers

  1. Remove-MgUser

  2. Update-MgUser

Explanations

Correct:

Remove-MgUser

Remove-MgUser deletes an existing Microsoft Entra user and can be invoked for each account identified for removal during bulk processing.

Update-MgUser

Update-MgUser modifies properties of an existing user, such as changing the department value supplied by a CSV record.

Wrong:

Get-MgUser

Get-MgUser retrieves user information. It does not modify user attributes or remove accounts.

New-MgUser

New-MgUser creates user objects. It does not perform updates to existing accounts or delete them.