Export-SCSMManagementPack

Exports a management pack as an XML file for import into Service Manager.

Syntax

Export-SCSMManagementPack [-ManagementPack] <ManagementPack[]> [-PassThru] -Path <String> [-Confirm] [-WhatIf]
 [<CommonParameters>]

Description

The Export-SCSMManagementPack cmdlet exports a management pack as an unsealed, valid XML formatted file that you can later import into smshort. All of the management pack’s information is included in the file as XML data. You can use this cmdlet to save or archive management pack information.

Examples

Example 1: Export management packs matching a name

PS C:\>Get-SCSMManagementPack -Name "*snmp*"| Export-SCSMManagementPack â€"Path "C:\temp;ls C:\temp\*snmp*"
Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---         10/2/2008  11:37 AM     240010 System.Snmp.Library.xml

This command exports all management packs with a name that is similar to snmp.

Parameters

-ManagementPack

Specifies one or more management packs to export. You can obtain a ManagementPack object that is returned by the Get-SCManagementPack cmdlet.

Type:ManagementPack[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PassThru

Specifies that output of this cmdlet can be passed to other cmdlets.

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

Specifies the folder into which exported management pack files will be stored. The specified folder must exist before you run the cmdlet.

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

Inputs

Microsoft.EnterpiseManagement.Configuration.ManagementPack

You can pipe a management pack to the *ManagementPack* parameter of the **Export-SCSMManagementPack** cmdlet, for example, the object that is returned by the **Get-SCSMManagementPack** cmdlet.

Outputs

Microsoft.EnterpiseManagement.Configuration.ManagementPack

When you use the *PassThru* parameter, the **Export-SCSMManagementPack** cmdlet returns a **ManagementPack** object.