Update-EaiSpecificDLTXTImport
Module: Exchange_AddIn
Applies to: Exchange online and Exchange Server on premises.
Use the Update-EaiSpecificDLTXTImport function to import a text file to update a specific DL.
UpdateEai-SpecificDLTXTImport
SYNOPSIS
Function to update a specific DL.
SYNTAX
Update-EaiSpecificDLTXTImport [-ImportPath] <Object> [-GroupToUpdate] <Object> [<CommonParameters>]
DESCRIPTION
Simple function to import a TXT file with PrimarySMTPAddress listings, no column header is needed.
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-EaiSpecificDLTXTImport -ImportPath c:\temp\file.txt -GroupToUpdate MyGroup
This updates the 'MyGroup' DL with the content listed in c:\temp\file.txt file.
EXAMPLE 2
Update-EaiSpecificDLTXTImport -ImportPath c:\users.txt -GroupToUpdate SecurityGroup
This updates the 'SecurityGroup' DL with the content listed in c:\users.txt 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.