Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Import-CMBaseline

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Import-CMBaseline

Imports Configuration Manager baselines.

Syntax

Parameter Set: ImportByFileName
Import-CMBaseline -FileName <String[]> [-DuplicateWhileImporting] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Import-CMBaseline cmdlet imports Microsoft System Center 2012 Configuration Manager baselines from files. A baseline is a collection of configuration items that System Center 2012 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 System Center 2012 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.

Parameters

-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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-FileName<String[]>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Import a baseline

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


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

Example 2: Import multiple baselines

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.


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

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.