powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-BpaResult



NAME
Get-BPAResult

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

SYNTAX
Get-BPAResult [-BestPracticesModelId] []


DESCRIPTION
The Get-BPAResult cmdlet allows you to retrieve and view the results of the latest Best Practices Analyzer (BPA) sc
an 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
Specifies the command ID of the Best Practices Analyzer model for which you want to view scan results. Note tha
t the Get-BPAResult cmdlet does not start a new scan. You can also use the short form of the -BestPracticesMode
lId parameter, -Id.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS




OUTPUTS




NOTES


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


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

C:\PS>Get-BPAResult -BestPracticesModelId


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





-------------------------- EXAMPLE 2 --------------------------

C:\PS>Get-BPAResult


Description
-----------
The preceding example returns the most recent Best Practices Analyzer scan results for the model that is represente
d 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 compute
r. The results of the Get-BPAModel cmdlet are piped to the Get-BPAResult cmdlet to retrieve the most recent Best Pr
actices Analyzer scan results for all models that are supported by BPA.






RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkId=141489
Invoke-BPAModel
Get-BPAModel
Set-BPAResult