New-SCOMManagementPackBundle

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-SCOMManagementPackBundle

Bundles individual management packs and their resources, creating a new management pack bundle.

Syntax

Parameter Set: Default
New-SCOMManagementPackBundle [-ComputerName <String> ] [-Credential <PSCredential> ] [-Force] [-ManagementPack <String> ] [-Name <String> ] [-Resource <String> ] [-SCSession <Connection> ] [ <CommonParameters>]

Detailed Description

The New-SCOMManagementPackBundle cmdlet bundles individual management packs and their resources, creating a new management pack bundle.

Parameters

-ComputerName<String>

Specifies the name of a computer to establish a connection with. The computer must be running the System Center Data Access Service. The default value is the computer for the current management group connection. Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name. To specify the local computer, type the computer name, "localhost", or a dot (.).

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies a user account under which the management group connection will run, that must have access to the server identifed by the ComputerName parameter (if specified). Default value is the current user. You can enter a PSCredential object that is returned by the Get-Credential cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Force

Forces the creation of the management pack bundle. This ensures that a new management pack bundle file is created even if one already exists in the location that is specified in the Name parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManagementPack<String>

Specifies one or more management packs to be included in the new management pack bundle.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the file path and the file name of the management pack bundle. The file extension must be ‘mpb’, for example ‘folder1\file2.mpb’.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Resource<String>

Specifies the resources that are required by the management packs in the bundle, and which are therefore included in the management pack bundle.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SCSession<Connection>

Specifies a connection to a management server. Default value is the current management group connection.

You can enter a management group connection object that is returned by the Get-SCOMManagementGroupConnection or the Get- SCOMManagementGroupConnection 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.

  • You cannot pipe input to this cmdlet.

Outputs

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

  • This cmdlet does not generate any output.

Examples

-------------------------- EXAMPLE 1 --------------------------

The script in this example creates a management pack bundle from a management pack that has no resources.

PS C:\>PS C:\>$mpbPath = "Resources\GroupQueueMP.xml"New-SCOMManagementPackBundle -Name Test1.mpb -ManagementPack $mpbPath

-------------------------- EXAMPLE 2 --------------------------

The script in this example creates a management pack bundle from a management pack that has resources.

PS C:\>PS C:\>$mpbPath = "Test7.mpb"$mp1 = "Resources\GroupQueueMP.xml"$mp2 = "Resources\DeviceProjectionMP.mp"$mp3 = "Resources\ResourceMP.xml"$r1 = "Resources\LinkingFrameworkUnitTest.dll"New-SCOMManagementPackBundle -Name $mpbPath -ManagementPack $mp1, $mp2, $mp3 -Resource $r1

Import-SCOMManagementPack

Export-SCOMManagementPack

Get-SCOMManagementPack

New-SCOMManagementPack

Protect-SCOMManagementPack

Remove-SCOMManagementPack

Test-SCOMManagementPack