Your network contains an Active Directory domain named adatum.com that is synced to Microsoft Azure Active Directory (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? A. From Azure Cloud Shell, run the Get-AzureADUser and Set-AzureADUser 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-ADUser and Set-ADUser cmdlets. D. From Azure Cloud Shell, run the Get-MsolUser and Set-MSOluser cmdlets. Â Suggested Answer: C The user accounts are synced from the on-premise Active Directory to the Microsoft Azure Active Directory (Azure AD). Therefore, the city attribute must be changed in the on-premise Active Directory. You can use Windows PowerShell on a domain controller and run the Get-ADUser cmdlet to get the required users and pipe the results into Set-ADUser cmdlet to modify the city attribute. Incorrect Answers: A, D: These answers suggest modifying the city attribute of the users in the Azure Active Directory which is incorrect. B: This answer has the correct cmdlets but they need to be run on a domain controller, not in the Azure cloud shell. Note: There are several versions of this question in the exam. The question has two possible correct answers: 1. From Windows PowerShell on a domain controller, run the Get-ADUser and Set-ADUser cmdlets. 2. From Active Directory Administrative Center, select the Active Directory users, and then modify the Properties settings. Other incorrect answer options you may see on the exam include the following: 1. From the Azure portal, select all the Azure AD users, and then use the User settings blade. 2. From Windows PowerShell on a domain controller, run the Get-AzureADUser and Set-AzureADUser cmdlets. 3. From the Microsoft 365 admin center, select the users, and then use the Bulk actions option. 4. From Azure Cloud Shell, run the Get-ADUser and Set-ADUser cmdlets. Reference: https://docs.microsoft.com/en-us/powershell/module/addsadministration/set-aduser?view=win10-ps This question is in MS-100 Exam For getting Microsoft 365 Administrator Expert Certificate Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Microsoft. The website does not contain actual questions and answers from Microsoft's Certification Exams. Trademarks, certification & product names are used for reference only and belong to Microsoft.
Please login or Register to submit your answer