Microsoft 365 Identity and Services (legacy) — Question 86
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 Azure Cloud Shell, run the Get-AzureADUser and Set-AzureADUser cmdlets.
- B. From Windows PowerShell on a domain controller, run the Get-ADUser and Set-ADUser 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-AzureADUser and Set-AzureADUser cmdlets.
Correct answer: B
Explanation
The correct answer is B because the Get-ADUser and Set-ADUser cmdlets are specifically designed to modify attributes in an on-premises Active Directory environment, which is what is needed for this scenario. Options A and D involve Azure AD cmdlets, which are not suitable for modifying the local Active Directory attributes. Option C does not provide the necessary control over the user attributes to achieve the desired outcome.