Kaido Jarvemets - Logo

Import and Export Configuration Manager Baselines using PowerShell


Configuration Manager baselines are an integral part of managing and monitoring your IT infrastructure. However, transferring these baselines between different environments or maintaining regular backups can be a time-consuming process. This article provides a detailed guide on how to streamline these operations by using PowerShell to import and export Configuration Manager baselines.

The Role of Configuration Manager Baselines

Configuration Manager baselines play a crucial role in managing your IT infrastructure. They allow you to define a standardized set of configurations that your systems should adhere to, helping to maintain consistency, security, and compliance across your environment.

Using PowerShell to Manage Configuration Manager Baselines

PowerShell is a powerful scripting language that can automate and streamline many administrative tasks. In the context of Configuration Manager baselines, you can use the Get-CMBaseline PowerShell command to retrieve a list of all available baselines, export each to a .cab file, and then import these files into Configuration Manager.


    This script is provided "as-is" with no warranties. Usage of this script is at
    your own risk. The author is not liable for any damages or losses arising from
    using this script. Please review the full legal disclaimer at:
#Run these commands on Site A and copy the files.
$Baselines = Get-CMBaseline
Foreach($Baseline in $Baselines){

    Export-CMBaseline -Id $Baseline.CI_ID -Path "C:\TEMP\$($Baseline.LocalizedDisplayName).cab"


#Run these commands on Site B to import all Baselines
$Files = Get-ChildItem -Path "C:\TEMP\"
foreach($CAB in $Files){

    Import-CMBaseline -FileName $CAB.FullName -Verbose -Force

Leave a Reply

Contact me

If you’re interested in learning about Import and Export Configuration Manager Baselines using PowerShell. I can help you understand how this solution can benefit your organization and provide a customized solution tailored to your specific needs.

Table of Contents