< Back

Set-DistributionGroupMembership

Mon Jan 13, 2020 7:17 pm

NAME Set-DistributionGroupMembership



SYNTAX

Set-DistributionGroupMembership [[-AddMembers] <psobject>] [[-RemoveMembers] <psobject>] [[-Groups] <psobject>]

[[-Session] <PSSession>] [<CommonParameters>]





PARAMETERS

-AddMembers <psobject>



Required? false

Position? 0

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name (All)

Aliases MembersToAdd

Dynamic? false



-Groups <psobject>



Required? false

Position? 2

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



-RemoveMembers <psobject>



Required? false

Position? 1

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name (All)

Aliases MembersToRemove

Dynamic? false



-Session <PSSession>

The PSSession in which to run this command. IE Local Exchange



Required? false

Position? 3

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

System.Management.Automation.PSObject

System.Management.Automation.Runspaces.PSSession





OUTPUTS

System.Object



ALIASES

None





REMARKS

None