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

Protect-SCSMManagementPack

Updated: November 1, 2013

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

Protect-SCSMManagementPack

Seals a management pack, preventing it from being modified.

Syntax

Parameter Set: FromManagementPack
Protect-SCSMManagementPack [-ManagementPack] <ManagementPack[]> -CompanyName <String> -KeyFilePath <String> -OutputDirectory <String> [-Copyright <String> ] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: FromManagementPackFile
Protect-SCSMManagementPack [-ManagementPackFile] <String[]> -CompanyName <String> -KeyFilePath <String> -OutputDirectory <String> [-Copyright <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Protect-SCSMManagementPack cmdlet seals a management pack, preventing it from being modified. The sealed management pack is stored in the folder that is specified by the OutputDirectory parameter. The sealed management pack can be imported into Service Manager.

Parameters

-CompanyName<String>

Specifies the company name that will be used as part of the signature of the sealed management pack.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Copyright<String>

Specifies the copyright string that will be used in the signature of the sealed management pack.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-KeyFilePath<String>

Specifies the path to the file that contains the key for the signature of the sealed management pack.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManagementPack<ManagementPack[]>

Specifies the management pack to seal. You can enter 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

-ManagementPackFile<String[]>

Specifies the name of the management pack file.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-OutputDirectory<String>

Specifies the folder where the sealed management pack will be stored.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PassThru

Specifies the output object that represents the sealed 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

-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.

  • System.String

    You can pipe a management pack file name to the ManagementPackFIle parameter of the Protect-SCSMManagementPack cmdlet.


  • Microsoft.EnterpriseManagement.Configuration.ManagementPackManagement pack object.

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

  • Management pack object.

    This cmdlet generates a management pack object when it is used with the PassThru parameter.


  • Sealed management pack.

    This cmdlet generates a sealed management pack that is stored in the folder that is specified by the OutputDirectory parameter.


Examples

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

The commands in this example seal the management pack FormTest.xml.


PS C:\>$mp = Get-SCManagementPack -ManagementPackFile Resources\FormTest.xml
PS C:\> $arguments = @{
>> ManagementPack = $mp
>> OutputDirectory = $PWD
>> KeyFilePath = "Resources\keyfile.snk"
>> CompanyName = "Fabrikam"
>> Copyright = "2011"}
PS C:\> Protect-SCSMManagementPack @arguments

Related topics

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