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

Test-SCSMManagementPack

Updated: November 1, 2013

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

Test-SCSMManagementPack

Tests the validity of a management pack.

Syntax

Parameter Set: Default
Test-SCSMManagementPack [-FullName] <String> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]




Detailed Description

The Test-SCSMManagementPack cmdlet tests the validity of a management pack. This cmdlet replaces the MPVerify.exe utility, which verifies a management pack by using the software development kit (SDK) method ManagementPack.Verify(). This cmdlet requires that the user specify the path to the management pack file and the name of the computer to use for resolving dependencies. For management pack bundle files (.mpb), all the management packs in the bundle will be tested for validity.

All issues that are found during the test are written as nonterminating errors, one error per issue. The output of the cmdlet is an object consisting of the management pack name, the path of the management pack, and a property named Verified, which equals true if no errors are found and false if errors were found.

Parameters

-ComputerName<String[]>

Specifies 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 (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).


Aliases

none

Required?

false

Position?

named

Default Value

localhost

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies a user account under which the management group connection will run. The account must have access to the server that is specified in the ComputerName parameter, if the server is specified. The 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

Current user context

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-FullName<String>

Specifies the full name and path of the management pack. The management pack can be a sealed, unsealed, or bundled management pack.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-SCSession<Connection[]>

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

You can enter a management group connection object that is returned by the Get-SCManagementGroupConnection cmdlet.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

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 full name to the FullName parameter of the Test-SCSMManagementPack cmdlet. The FullName parameter accepts propertyname values, which are the output of Get-ChildItem and of any other commands that produce System.IO.FileInfo objects.


Outputs

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

  • Microsoft.SystemCenter.Core.Commands.ManagementPackVerificationResult

    An object that represents a management pack verification result.


Examples

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

The commands in this example test the TestingMP.xml management pack.


 

PS C:\>$mperror = Test-SCManagementPack C:\temp\TestingMP.xml
PS C:\>$mperror|format-list
Verified : False
Name :
FullName : C:\temp\TestingMP.xml
Error : XSD verification failed for the management pack. [Line: 29, Position: 8]

Related topics

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