Export-SCOMManagementPack
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
Returns an object representing the item with which you are working. 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 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 this cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Microsoft.EnterpiseManagement.Configuration.ManagementPack
If you specify 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 Simple Network Management Protocol (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"