Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft 365 Certified: Endpoint Administrator Associate · Microsoft
Hot Area / Sentence Completion
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
# Connect to Microsoft Graph with required scopes Connect-MgGraph -Scopes "User.ReadWrite.All", "Group.Read.All" # Define the group ID $groupId = "2c5b5f9b-75eb-4e1e-beca-3b4373f7f4f3" # Get all members of the group $members = Get-MgGroupMember -GroupId $groupId -All # Loop through each member and update EmployeeType foreach ($member in $members) { Update-MgUser -UserId $member.Id -EmployeeType "Part-time"
The PS in this way will never work. Get-MgGroupMember will give you back only "id", so $person.objectid does not exist. The working command is: Update-MgUser -UserId $person.id -EmployeeType "Part-time" Otherwise the answer is correct
answer is correct https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.users/update-mguser?view=graph-powershell-1.0