Update-SpecificDLCSVImport

Module: MO_Module
Applies to: Exchange online and Exchange Server on premises.

Use the Update-SpecificDLCSVImport function to import a CSV file to update a specific DL.

Update-SpecificDLCSVImport

SYNOPSIS

Function to update a specific DL.

SYNTAX

Update-SpecificDLCSVImport [-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-SpecificDLCSVImport -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-SpecificDLCSVImport -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.