![]() # Add all the user types to our final result $LocalAdminGroupMembers = Get-LocalGroupMember -Name Administrators Try below script, it might work for you, you can later on format the output to fit with your use: $AdminMembers = Fetch out all the members of the local administrators group In the above output you can see for one of the member the ObjectClass is "Group", so I will further dig in to expand it's members(whatĪs you are not having the admin privileges I am assuming that you are working on a client OS and you might not be able to import the active directory module to expand such group. It goes on further expanding the same, for example the command " Get-LocalGroupMember -Name Administrators " I am not sure but the tool that you are using might be checking the object type, and if it finds out that the output is having some group ![]() Gives out the details about the members in the local admin groups, but donot tell about there type.
0 Comments
Leave a Reply. |