exam questions

Exam MS-102 All Questions

View all questions & answers for the MS-102 exam

Exam MS-102 topic 1 question 257 discussion

Actual exam question from Microsoft's MS-102
Question #: 257
Topic #: 1
[All MS-102 Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sergioandreslq
Highly Voted 1 year, 7 months ago
The correct answer is A. From Windows PowerShell on a domain controller, run the Get-ADUser and Set-ADUser cmdlets. The Get-ADUser and Set-ADUser cmdlets are used to retrieve and modify user accounts in Active Directory. You can use these cmdlets to bulk update the city attribute for all the users in the domain by using a CSV file that contains the mapping of the city names to the airport codes. 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.
upvoted 9 times
...
Frank9020
Most Recent 6 months, 3 weeks ago
Selected Answer: A
To modify the city attribute for users in your on-premises Active Directory (which will then sync to Azure AD), you should use the Get-ADUser and Set-ADUser cmdlets in Windows PowerShell on the domain controller.
upvoted 4 times
...
Crille
6 months, 3 weeks ago
I should say C https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/get-mguser?view=graph-powershell-1.0
upvoted 1 times
...
APK1
10 months ago
Selected Answer: A
There are several version of this question, here the correct answer is A
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...