Export-SCSMManagementPack
Updated: September 10, 2012
Applies To: System Center 2012 - Service Manager, System Center 2012 SP1 - Service Manager
Export-SCSMManagementPack
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 Service Manager. 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 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? |
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 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 --------------------------
The command in this example 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*
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 10/2/2008 11:37 AM 240010 System.Snmp.Library.xml
