Get-NestedADGroupMember

SYNOPSIS

Extract users from an AD group recursive, 4 levels deep.

SYNTAX

Get-NestedADGroupMember [[-GroupName] <String>] [[-Export] <String>] [[-ReportPath] <DirectoryInfo>]
 [<CommonParameters>]

DESCRIPTION

Extract users from an AD group recursive, 4 levels deep.

EXAMPLES

EXAMPLE 1

Get-NestedADGroupMembers -GroupName "Domain Admins"

PARAMETERS

-GroupName

Name of the group to query.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Export

Export the result to a report file. (Excel or html). Or select Host to display the object on screen.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Host
Accept pipeline input: False
Accept wildcard characters: False

-ReportPath

Where to save the report.

Type: DirectoryInfo
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: C:\Temp
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Object[]

NOTES