Get-BpaModel

Get-BpaModel

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

구문

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

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

자세한 설명

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.

매개 변수

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

별칭

Id,BestPracticesModelId

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

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.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

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

별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • System.String

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.BestPractices.CoreInterface.Model

예제

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

관련 항목

Get-BpaResult

Invoke-BpaModel

Set-BpaResult