Import-LMDeviceGroupsFromCSV
Syntax
Import (Default)
Import-LMDeviceGroupsFromCSV -FilePath <String> [-PassThru] [-ProgressAction <ActionPreference>] [<CommonParameters>]Sample
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
Import-LMDeviceGroupsFromCSV -FilePath ./ImportList.csv -PassThruParameters
-FilePath
Path to the CSV file containing device groups to import. Required for Import parameter set.
Type: StringParameter Sets: ImportAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-GenerateExampleCSV
Generates a sample CSV file to use as a template for importing device groups.
Type: SwitchParameterParameter Sets: SampleAliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-PassThru
Returns the imported device group objects. By default, no output is returned.
Type: SwitchParameterParameter Sets: ImportAliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
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.