Compartilhar via


Export-SCSMManagementPack

Export-SCSMManagementPack

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

Syntax

Parameter Set: FromManagementPack
Export-SCSMManagementPack [-ManagementPack] <ManagementPack[]> -Path <String> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Export-SCSMManagementPack cmdlet exports a management pack as an unsealed, valid XML formatted file that you can later import into . 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.

Parameters

-ManagementPack<ManagementPack[]>

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

Aliases

none

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.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Path<String>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

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.

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

  • 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

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

  • Microsoft.EnterpiseManagement.Configuration.ManagementPack

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

Examples

Example 1: Export management packs matching a name

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

PS C:\>Get-SCSMManagementPack -Name "*snmp*"| Export-SCSMManagementPack –Path "C:\temp;ls C:\temp\*snmp*"

Import-SCSMManagementPack

Get-SCSMManagementPack

New-SCSMManagementPack

Protect-SCSMManagementPack

Test-SCSMManagementPack

New-SCSMManagementPackBundle

Remove-SCSMManagementPack