Import-CMCollection

Imports a collection.

Syntax

Import-CMCollection
      [-ImportFilePath] <String>
      [-Confirm]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [<CommonParameters>]

Description

The Import-CMCollection cmdlet imports a previously exported collection into Microsoft System Center Configuration Manager.

Examples

Example 1: Import a collection

PS C:\> Import-CMCollection -ImportFilePath "c:\path\collection.mof"

This command imports the collection defined in the collection.mof file.

Required Parameters

-ImportFilePath

Specifies the full path of the import (MOF) file for the collection.

Type:String
Aliases:Path
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False