Microsoft 365 Administrator — Question 138
Your network contains an Active Directory domain named adatum.com that is synced to Azure AD.
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-ADUser and Set-ADUser cmdlets.
- B. From Azure Cloud Shell, run the Get-ADUser and Set-ADUser cmdlets.
- C. From Windows PowerShell on a domain controller, run the Get-MgUser and Update-MgUser cmdlets.
- D. From the Azure portal, select all the Azure AD users, and then use the User settings blade.
Correct answer: A
Explanation
The correct answer is A because the Get-ADUser and Set-ADUser cmdlets are specifically designed for managing Active Directory user attributes, including the city attribute on a domain controller. Options B and C are incorrect as they involve commands that do not directly modify the city attribute in the on-premises Active Directory. Option D does not utilize the appropriate tools for bulk modification of user attributes in Active Directory.