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

Export-SCOMManagementPack

Updated: February 26, 2014

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

Export-SCOMManagementPack

Exports a management pack.

Syntax

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




Detailed Description

The Export-SCOMManagementPack cmdlet exports a management pack as an unsealed, valid XML-formatted file that you can later import into System Center 2012 – Operations Manager. You can use this cmdlet to save or archive management pack information.

Parameters

-ManagementPack<ManagementPack[]>

Specifies an array of ManagementPack objects. To obtain a ManagementPack object, use the Get-SCOMManagementPack cmdlet.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-PassThru

Indicates that the cmdlet creates or modifies an object that a command can use in the pipeline. By default, this cmdlet does not generate any output.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Path<String>

Specifies the folder for the exported management pack files. 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 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.

  • Microsoft.EnterpiseManagement.Configuration.ManagementPack

    You can pipe a management pack to the ManagementPack parameter of this 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, this cmdlet returns a ManagementPack object.


Examples

Example 1: Export management packs by using names

This command uses the Get-SCOMManagementPack cmdlet to get all management packs that have a name that contains the string snmp and then uses the pipeline operator to pass them to the Export-SCOMManagementPack cmdlet. The command exports management packs to the C:\MPArchive directory.


PS C:\> Get-SCOMManagementPack -Name *snmp* | Export-SCOMManagementPack -Path "C:\MPArchive"

Related topics

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