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)
Get-MgUser
Remove-MgUser
New-MgUser
Update-MgUser
Correct answers
Remove-MgUser
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.