Update-EaiSpecificDLCSVImport
Module: Exchange_AddIn
Applies to: Exchange online and Exchange Server on premises.
Use the Update-EaiSpecificDLCSVImport function to import a CSV file to update a specific DL.
Update-EaiSpecificDLCSVImport
SYNOPSIS
Function to update a specific DL.
SYNTAX
Update-EaiSpecificDLCSVImport [-ImportPath] <Object> [-GroupToUpdate] <Object> [<CommonParameters>]
DESCRIPTION
Simple function to import a CSV file with PrimarySMTPAddress as a column into a specific Distribution Group.
The cmdlet of Update-DistributionGroupMember replaces all addresses that are currently in the DL with the new list of members.
https://technet.microsoft.com/en-us/library/dd335049(v=exchg.160).aspx
EXAMPLES
EXAMPLE 1
Update-EaiSpecificDLCSVImport -ImportPath c:\temp\file.csv -GroupToUpdate MyGroup
This updates the 'MyGroup' DL with the content listed in c:\temp\file.csv file.
EXAMPLE 2
Update-EaiSpecificDLCSVImport -ImportPath c:\users.csv -GroupToUpdate SecurityGroup
This updates the 'SecurityGroup' DL with the content listed in c:\users.csv file.
PARAMETERS
-ImportPath
Enter the import path of the file location, including the file name.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-GroupToUpdate
You must enter the name of the distribution group to update.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
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
Import Path of CSV file that contains PrimarySMTPAddress as a column.
OUTPUTS
Displays current list of users in requested group.
Amazon Affiliate
As you make purchases from Amazon, consider clicking my link first, then purchase items as you normally would. This helps support my blogging efforts, and it costs you nothing. Simply click the Amazon link and complete your ordinary shopping tasks. Thank you.
Disclosure: As an Amazon Associate, I earn a small commission from qualifying purchases made through the links in this post, at no extra cost to you. This helps support the blog!