Get-GroupMemberships
SYNOPSIS
SYNTAX
Get-GroupMemberships [[-Path] <Object>] [<CommonParameters>]
DESCRIPTION
Get a list of Active Directory User Accounts and the groups they are a member of
EXAMPLES
EXAMPLE 1
Get-GroupMemberships -Path "$env:USERPROFILE\downloads\Group Memberships.xlsx"
PARAMETERS
-Path
Specifies the export directory and filename for the report
Type: System.Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: "$env:USERPROFILE\downloads\AD Group Membership.xlsx"
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
NOTES
Requires Active Directory and ImportExcel Modules