Bird
0
0

You run this command but get an error: Add-LocalGroupMember -Group 'Admins' -Member 'John'. What is the most likely cause?

medium📝 Debug Q14 of 15
PowerShell - Active Directory
You run this command but get an error: Add-LocalGroupMember -Group 'Admins' -Member 'John'. What is the most likely cause?
AThe syntax is incorrect
BThe 'Admins' group does not exist
CThe 'John' user is already a member
DYou are not running PowerShell as administrator
Step-by-Step Solution
Solution:
  1. Step 1: Check permissions needed for group changes

    Modifying local groups requires administrator privileges in PowerShell.
  2. Step 2: Analyze error cause

    If the group exists and syntax is correct, lack of admin rights causes permission errors.
  3. Final Answer:

    You are not running PowerShell as administrator -> Option D
  4. Quick Check:

    Admin rights needed for group changes [OK]
Quick Trick: Always run PowerShell as admin for group management [OK]
Common Mistakes:
  • Assuming syntax error without checking permissions
  • Ignoring admin rights requirement
  • Thinking user membership causes error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes