ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 275 - MS-102 discussion

Report
Export

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 Gec-ADUser and Sec-ADUser cmdlets.

Answers
A.

From Windows PowerShell on a domain controller, run the Gec-ADUser and Sec-ADUser cmdlets.

B.

From Azure Cloud Shell, run the Gec-ADUser and Sec-ADUser cmdlets.

Answers
B.

From Azure Cloud Shell, run the Gec-ADUser and Sec-ADUser cmdlets.

C.

From Windows PowerShell on a domain controller, run the Gec-MgUser and Updace-MgUser cmdlets.

Answers
C.

From Windows PowerShell on a domain controller, run the Gec-MgUser and Updace-MgUser cmdlets.

D.

From Azure Cloud Shell, run the Gec-MgUser and Update-MgUser cmdlets.

Answers
D.

From Azure Cloud Shell, run the Gec-MgUser and Update-MgUser cmdlets.

Suggested answer: A

Explanation:

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.

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.

https://docs.microsoft.com/en-us/powershell/module/addsadministration/set-aduser

asked 05/10/2024
Thiago B
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first