Get-BpaModel

Get-BpaModel

Retrieves and displays the list of BPA models installed on the system.

Sintaxis

Parameter Set: BPANoFilterParameterSet
Get-BpaModel [-RepositoryPath <String> ] [ <CommonParameters>]

Parameter Set: BPAFilterParameterSet
Get-BpaModel [-ModelId] <String[]> [[-SubModelId] <String> ] [-RepositoryPath <String> ] [ <CommonParameters>]

Descripción detallada

The Get-BpaModel cmdlet retrieves and displays the list of models that are supported by Best Practices Analyzer (BPA) and installed on the computer.

If no parameter is specified, then this cmdlet returns all models that are installed on the computer. If a model is specified by using the ModelId parameter, then the specified model is returned.

Parámetros

-ModelId<String[]>

Specifies the model ID of the Best Practices Analyzer model for displaying details. The short form of this parameter can also be used, Id.
This is the identity of the model whose details need to be obtained.

Alias

Id,BestPracticesModelId

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-RepositoryPath<String>

Specifies the location of the repository from which to get the results generated by the Invoke-BpaModel.
The Invoke-BpaModel cmdlet provides an option to store the results either in the default reports repository location referred by the ReportsRoot registry key or in the custom location supplied as input to the Invoke-BpaModel cmdlet through this parameter.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-SubModelId<String>

Identifies the submodel to get for the model specified by the ModelId parameter.
Example: The Update Services model (Microsoft/Windows/UpdateServices) has two submodels (UpdateServices-DB, UpdateServices-Services).

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • System.String

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.BestPractices.CoreInterface.Model

Ejemplos

EXAMPLE 1

This example can be used to return details about the BPA model that is specified in the ModelId parameter, represented by ModelID1. The short form of the ModelId parameter can also be used, Id.

PS C:\> Get-BPAModel

EXAMPLE 2

This example can be used to return details about BPA scans for all models that are installed on the computer.

PS C:\> Get-BPAModel

Temas relacionados

Get-BpaResult

Invoke-BpaModel

Set-BpaResult