Export-SCOMManagementPack
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Export-SCOMManagementPack
Exports a management pack as a valid XML-formatted file that you can later import into Service Manager or Operations Manager.
Syntax
Parameter Set: Default
Export-SCOMManagementPack [-ManagementPack <ManagementPack> ] [-PassThru] [-Path <String> ] [ <CommonParameters>]
Detailed Description
The Export-SCOMManagementPack cmdlet exports a management pack as a valid XML-formatted file that you can later import into Service Manager or Operations Manager. All of the management packs information is included in the file as XML data. You can use this cmdlet to save or to 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-SCOMManagementPack cmdlet.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PassThru
Specifies the output object that represents the management pack. This output object 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? |
false |
Position? |
named |
Default Value |
none |
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
This is the same management pack object that is returned by Get-SCOMManagementPack.
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-SCOMManagementPack cmdlet returns a ManagementPack object.
Examples
-------------------------- EXAMPLE 1 --------------------------
The command in this example exports all management packs with a name that is similar to '*snmp*'.
PS C:\>PS C:\>Get-SCOMManagementPack -Name snmp | Export-SCOMManagementPack -Path C:\temp;dir C:\temp\*snmp*
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 10/2/2008 11:37 AM 240010 System.Snmp.Library.xml