Skip to content

Import-LMDeviceGroupsFromCSV

Syntax

Import (Default)

Terminal window
Import-LMDeviceGroupsFromCSV -FilePath <String> [-PassThru] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

Sample

Terminal window
Import-LMDeviceGroupsFromCSV [-GenerateExampleCSV] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Imports list of device groups based on specified CSV file. You can generate a sample of the CSV file by specifying the -GenerateExampleCSV parameter.

Examples

Example 1

Terminal window
Import-LMDeviceGroupsFromCSV -FilePath ./ImportList.csv -PassThru

Parameters

-FilePath

Fill FilePath Description

Type: String
Parameter Sets: Import
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GenerateExampleCSV

Fill GenerateExampleCSV Description

Type: SwitchParameter
Parameter Sets: Sample
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-PassThru

Fill PassThru Description

Type: SwitchParameter
Parameter Sets: Import
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
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

None. Does not accept pipeline input.

Outputs

Notes

Assumes csv with the headers name,fullpath,description,appliesTo,property1,property2,property[n]. Name and fullpath are the only required fields.