Share via


Get-BpaResult

Get-BpaResult

The Get-BPAResult cmdlet allows you to retrieve and view the results of the most recent Best Practices Analyzer (BPA) scan for a specific model.

Syntax

Get-BPAResult [-BestPracticesModelId] <string> [<CommonParameters>]

Detailed Description

The Get-BPAResult cmdlet allows you to retrieve and view the results of the latest Best Practices Analyzer (BPA) scan for a specific model that is installed on a computer. To use the command, add the BestPracticesModelId parameter, and specify the model ID for which you want to view the most recent BPA scan results.

Parameters

-BestPracticesModelId <string>

Specifies the command ID of the Best Practices Analyzer model for which you want to view scan results. Note that the Get-BPAResult cmdlet does not start a new scan. You can also use the short form of the -BestPracticesModelId parameter, -Id.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Position?

2

-CommonParameter

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter

Input and Return Types

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

Input Type

.

Return Type

.

Notes

  • The Get-BPAResult cmdlet does not start a new scan.

Examples

EXAMPLE 1

C:\PS>Get-BPAResult -BestPracticesModelId <Specified Model Id>

Description

-----------

The preceding example returns the most recent Best Practices Analyzer scan results for the model that is represented by "Specified Model Id." You can also use the short form of the -BestPracticesModelId parameter, -Id.

EXAMPLE 2

C:\PS>Get-BPAResult <Specified Model Id>

Description

-----------

The preceding example returns the most recent Best Practices Analyzer scan results for the model that is represented by "Specified Model Id."

EXAMPLE 3

C:\PS>Get-BPAModel | Get-BPAResult

Description

-----------

In the preceding example, Get-BPAModel is used to return a list of all BPA models that are installed on the computer. The results of the Get-BPAModel cmdlet are piped to the Get-BPAResult cmdlet to retrieve the most recent Best Practices Analyzer scan results for all models that are supported by BPA.

See Also

Reference

Invoke-BpaModel
Get-BpaModel
Set-BpaResult