exam questions

Exam MS-100 All Questions

View all questions & answers for the MS-100 exam

Exam MS-100 topic 3 question 32 discussion

Actual exam question from Microsoft's MS-100
Question #: 32
Topic #: 3
[All MS-100 Questions]

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.
Show Suggested Answer Hide Answer
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

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
mkoprivnj
Highly Voted 4 years, 4 months ago
C for sure. From AD modify city attribute!
upvoted 13 times
lucidgreen
4 years ago
Yes, you're modifying the user in AD, not the cloud.
upvoted 5 times
...
syswiz85
3 years, 12 months ago
100% correct
upvoted 3 times
...
...
Amir1909
Most Recent 1 year, 2 months ago
C is correct
upvoted 1 times
...
Amir1909
1 year, 2 months ago
Correct
upvoted 1 times
...
MomoLomo
3 years, 8 months ago
on ms-100
upvoted 1 times
...
MartiFC
3 years, 8 months ago
C is correct. The change have to from AD on-premises
upvoted 3 times
...
venwaik
3 years, 9 months ago
Got the question on 19th of July 2021
upvoted 2 times
...
RAJULROS
3 years, 10 months ago
this question was asked on 28May21
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago