Import-CMBaseline

Imports Configuration Manager baselines.

Syntax

Import-CMBaseline
      -FileName <String[]>
      [-DuplicateWhileImporting]
      [-Force]
      [-DisableWildcardHandling]
      [-ForceWildcardHandling]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Import-CMBaseline cmdlet imports Microsoft System Center Configuration Manager baselines from files. A baseline is a collection of configuration items that Configuration Manager uses to evaluate whether a computer complies with software requirements. After you import a baseline, you can deploy it to a collection so that devices in that collection download the configuration baseline and assess compliance with it.

You can import a configuration baseline from a .cab file that conforms to the Service Modeling Language (SML) schema. For example, you might import data previously exported from Configuration Manager or best practices included in a Monitoring Pack for Configuration Manager.

When you import a baseline configuration, you have the option of creating a local copy. You can modify that baseline in the future.

Examples

Example 1: Import a baseline

PS C:\>Import-CMBaseline -FileName "\\ContosoServer01\Public\CM\BaselineW2K8.cab"

This command imports a baseline from a file named BaselineW2K8.cab.

Example 2: Import multiple baselines

PS C:\>Import-CMBaseline -FileName "\\ContosoServer01\Public\CM\BaselineW2K8.cab","\\ContosoServer01\Public\CM\BaselineWin7.cab" -DuplicateWhileImporting

This command imports baselines from .cab files named BaselineW2K8.cab and BaselineWin7.cab. This command uses the DuplicateWhileImporting parameter, so the command creates an editable version of the configuration baselines.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

Indicates that the cmdlet duplicates a baseline while it imports the baseline. If you duplicate a baseline, you can modify that baseline in the future.

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

Specifies an array of .cab file names. Each file contains Configuration Manager configuration items.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False