You want to create a new local group named 'ProjectTeam' and add multiple users: 'Alice', 'Bob', and 'Carol'. Which script correctly does this in PowerShell?
hard📝 Application Q15 of 15
PowerShell - Active Directory
You want to create a new local group named 'ProjectTeam' and add multiple users: 'Alice', 'Bob', and 'Carol'. Which script correctly does this in PowerShell?
Use New-LocalGroup with -Name to create 'ProjectTeam'.
Step 2: Add multiple members in one command
Add-LocalGroupMember accepts multiple members as a comma-separated list.
Step 3: Verify syntax correctness
New-LocalGroup -Name 'ProjectTeam'; Add-LocalGroupMember -Group 'ProjectTeam' -Member 'Alice','Bob','Carol' correctly creates the group then adds all members in one command.