Get-ShowMbrs
Recursivley enumerates local Windows and AD groups.
Syntax
Get-ShowMbrs [-group] <String> [<CommonParameters>]
Detailed Description
The Get-ShowMbrs function recursivley enumerates local Windows and AD groups. Similar to the NT Resource utility showmbrs.exe, except that Get-ShowMbrs provides fully recursive group enumeration.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
group |
|
true |
false |
|
Input Type
None
You cannot pipe objects to Get-ShowMbrs.
Return Values
String
Get-ShowMbrs returns a string object.
Examples
EXAMPLE 1
Get-ShowMbrs "$env:computername\Administrators"
This command outputs a list of all members of the local Administrators group. If the group contains AD members, these groups are also enumerated.
EXAMPLE 2
Get-ShowMbrs "Consco\PayrollUsers"
This command outputs a list of all members of the AD group. If the group contains nested groups, these groups are also enumerated.