Any suggestions? Export (0) Print
Expand All

Test-SCSMManagementPack

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 with which to establish a connection. 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-SCSMManagementGroupConnection 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 (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    You can send a management pack full name to the FullName parameter of the Test-SCSMManagementPack cmdlet by using the pipeline operator. 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: Test a management pack

These commands test the TestingMP.xml management pack.


 

PS C:\>$MpError = Test-SCSMManagementPack "C:\temp\TestingMP.xml"
PS C:\>$MpError | Format-List

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft