
Explanation:
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: AzureAD.
It is well documented. CONTOSO would only be valid if this in on-premise AD.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/assign-local-admin
https://www.windows-commandline.com/add-user-to-group-from-command-line/