Microsoft 365 Administrator — Question 280
Your network contains an Active Directory domain named adatum.com that is synced to a Microsoft Entra tenant.
The domain contains 100 user accounts.
The city attribute for all the users is set to the city where the user resides.
You need to modify the value of the city attribute to the three-letter airport code of each city.
What should you do?
Answer options
- A. From Windows PowerShell on a domain controller, run the Get-MgUser and Update-MgUser cmdlets.
- B. From Azure Cloud Shell, run the Get-MgUser and Update-MgUser cmdlets.
- C. From the Microsoft 365 admin center, select the users, and then use the Bulk actions option.
- D. From Windows PowerShell on a domain controller, run the Get-ADUser and Set-ADUser cmdlets.
Correct answer: D
Explanation
The correct answer is D, as Get-ADUser and Set-ADUser cmdlets are specifically designed for managing Active Directory objects on a domain controller. Options A and B are incorrect because they utilize the Microsoft Graph API, which is not suitable for modifying local Active Directory attributes directly. Option C is also wrong, as the Microsoft 365 admin center does not provide the functionality to bulk update the city attribute in the manner described.