Get-BpaModel
Get-BpaModel
The Get-BPAModel cmdlet allows you to retrieve and view the list of roles supported by Best Practices Analyzer (BPA) that are installed on a computer.
Syntax
Get-BPAModel [[-BestPracticesModelId] <string>] [<CommonParameters>]
Detailed Description
The Get-BPAModel cmdlet allows you to retrieve and view the list of models that are supported by Best Practices Analyzer (BPA) and installed on the computer. If no parameter is specified, Get-BPAModel returns all models that are installed on the computer. If a model is specified by using the -BestPracticesModelId parameter, the specified model is returned.
Parameters
-BestPracticesModelId <string>
Specifies the command ID of the Best Practices Analyzer model for which you want to view details. You can also use the short form of the -BestPracticesModelId parameter, -Id.
Attributes
Name | Value |
---|---|
Required? |
false |
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
Examples
EXAMPLE 1
C:\PS>Get-BPAModel -BestPracticesModelId <Specified Model Id>
Id Last Scan Time
--- --------------
<Specified Model Id> <Short Date> <Time>
Description
-----------
The preceding example can be used to return details about the BPA model that is specified in the -BestPracticesModelId parameter, represented by "Specified Model Id." You can also use the short form of the -BestPracticesModelId parameter, -Id.
EXAMPLE 2
C:\PS>Get-BPAModel <Specified Model Id>
Id Last Scan Time
--- --------------
<Specified Model Id> <Short Date> <Time>
Description
-----------
The preceding example can be used to return details about BPA scans for the model that is represented by "Specified Model Id."
EXAMPLE 3
C:\PS>Get-BPAModel
Id Last Scan Time
--- --------------
<Model Id 1> <Short Date1> <Time1>
<Model Id 2> Never
<Model Id 3> <Short Date3> <Time3>
Description
-----------
In the preceding example, Get-BPAModel, with no parameters added, returns details about BPA scans for all models that are installed on the computer.