Get-LocalGroupMember
noun
say it: “GET LOH-kul GROOP MEM-bur” /ˈɡɛt ˈloʊkəl ˈɡrup ˈmɛmbɚ/
A PowerShell command that lists the accounts in a group kept on one Windows PC, such as Administrators.
What does Get-LocalGroupMember do?
Get-LocalGroupMember answers "who is in this group?" for a group kept on this PC. Ask it about Administrators and you have every account that can change anything. PrincipalSource says where each account comes from: Local, a Microsoft account, or a company's network.
Get-LocalGroupMember -Group Administrators
In a sentence
- “Get-LocalGroupMember -Group Administrators answered the help-desk ticket in one line.”
- “Sam ran Get-LocalGroupMember on the Guests group to see who was in it.”
Level: Journeyman · More PowerShell terms at this level
Updated