exam questions

Exam MS-102 All Questions

View all questions & answers for the MS-102 exam

Exam MS-102 topic 1 question 55 discussion

Actual exam question from Microsoft's MS-102
Question #: 55
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 Azure Cloud Shell, run the Get-MgUser and Update-MgUser cmdlets.
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
Greatone1
Highly Voted 1 year, 8 months ago
Selected Answer: A
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 14 times
...
Motanel
Most Recent 1 year ago
Azure AD Powershell will be deprecated, so get_MgUser needs to be used.
upvoted 2 times
BJS78
8 months, 2 weeks ago
Does not matter. Here you need to apply change on on-prem AD, not Azure-AD
upvoted 3 times
...
...
sherifhamed
1 year, 7 months ago
Selected Answer: A
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. For example, you can create a CSV file like this:
upvoted 3 times
...
mhmyz
1 year, 7 months ago
Selected Answer: A
Get-ADUser https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-aduser?view=windowsserver2022-ps Set-ADUser https://learn.microsoft.com/en-us/powershell/module/activedirectory/set-aduser?view=windowsserver2022-ps
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago