Bird
0
0

What is the primary purpose of the PowerShell cmdlet Get-LocalGroup?

easy📝 Conceptual Q1 of 15
PowerShell - Active Directory
What is the primary purpose of the PowerShell cmdlet Get-LocalGroup?
ATo rename a local group
BTo add a new user to a local group
CTo list all local groups on the computer
DTo delete a local group
Step-by-Step Solution
Solution:
  1. Step 1: Understand the cmdlet name

    The cmdlet Get-LocalGroup starts with 'Get-', which is used to retrieve information.
  2. Step 2: Identify the cmdlet function

    This cmdlet retrieves and lists all local groups on the computer.
  3. Final Answer:

    To list all local groups on the computer -> Option C
  4. Quick Check:

    Cmdlet purpose = List groups [OK]
Quick Trick: Get- commands retrieve info, Add- commands modify [OK]
Common Mistakes:
  • Confusing Get-LocalGroup with Add-LocalGroupMember
  • Thinking it deletes or renames groups
  • Assuming it manages users instead of groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes