![]() ![]() Write-Output "You have a total of $($AdminMembers.Windows Admin Center brings a new level of visibility and control to the Windows Server platform, and serves as a central command and management for key applications such as Hyper-V, Storage Spaces Direct, Storage Replica, Failover Cluster Manager, Azure File Sync, Windows Advanced Threat Defender Protection, third-party applications, and more. ![]() Write-Output "Following are the members of the local administrators group" $AdminMembers += $LocalAdminGroupMembers | Where-Object # 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |