exam questions

Exam MD-101 All Questions

View all questions & answers for the MD-101 exam

Exam MD-101 topic 4 question 70 discussion

Actual exam question from Microsoft's MD-101
Question #: 70
Topic #: 4
[All MD-101 Questions]

HOTSPOT -
You have an Azure Active Directory (Azure AD) tenant named contoso.com that contains a user named User1. User1 has a user principal name (UPN) of user1
@contoso.com.
You join a Windows 10 device named Client1 to contoso.com.
You need to add User1 to the local Administrators group of Client1.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: net localgroup -
Add user to group from command line (CMD)
Windows provides command line utilities to manager user groups. In this post, learn how to use the command net localgroup to add user to a group from command prompt'
For example to add a user 'John' to administrators group, we can run the below command. net localgroup administrators John /add

Box 2: Contoso -
The domain of the user is Contoso.
Reference:
https://www.windows-commandline.com/add-user-to-group-from-command-line/

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
bensrayan
Highly Voted 2 years, 4 months ago
- If your tenant users are synchronized from on-premises Active Directory, use net localgroup administrators /add "Contoso\username". -- If your tenant users are created in Azure AD, use net localgroup administrators /add "AzureAD\UserUpn" In our case , should be : net localgroup administrators /add "AzureAD\UserUpn"
upvoted 11 times
AK4U_111
2 years, 3 months ago
exactly
upvoted 3 times
...
...
Amir1909
Most Recent 1 year ago
- net localgroup - AzureAD
upvoted 1 times
...
Afsan
1 year, 12 months ago
azuread\upn is correct
upvoted 1 times
...
raduM
2 years, 3 months ago
azuread\upn is correct
upvoted 3 times
...
Altheus
2 years, 3 months ago
This answer is right, the user has a upn ending in contoso.com so can resolve the domain You are then adding this domain user to the local admins group.
upvoted 1 times
BRoald
2 years, 1 month ago
Wrong, this is an Azure AD environment, so its ALWAYS AzureAD\[email protected]
upvoted 1 times
...
...
raduM
2 years, 4 months ago
AzureAD shopuld be corect here
upvoted 2 times
...
Mnguyen0503
2 years, 4 months ago
Box 2 answer should be AzureAD. It is well documented. CONTOSO would only be valid if this in on-premise AD. https://docs.microsoft.com/en-us/azure/active-directory/devices/assign-local-admin
upvoted 4 times
TonySuccess
2 years, 4 months ago
This was also my thought process too.
upvoted 1 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