Get-BpaModel

Get-BpaModel is accessible with the help of BestPractices module. To configure BestPractices, go through this link.

Synopsis

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

Description

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.

Parameters

-ModelId

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.

Type:String[]
Aliases:Id, BestPracticesModelId
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

-RepositoryPath

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.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SubModelId

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

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Get-BpaModel [-RepositoryPath <String>] [<CommonParameters>]

Get-BpaModel [-ModelId] <String[]> [[-SubModelId] <String>] [-RepositoryPath <String>] [<CommonParameters>]

—————–EXAMPLE 1—————–
PS C:>Get-BPAModel -ModelId Microsoft/Windows/ADRMS

Id                     : Microsoft/Windows/ADRMS
Company                : Microsoft Corporation
Name                   : RightsManagementServices
Version                : 1.0
LastScanTime           : Never
LastScanTimeUtcOffset  : 
SubModels              : 
Parameters             : 
ModelType              : SingleMachine
SupportedConfiguration : 

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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Get-BpaModel

Get-Command Get-BpaModel powershell script command cmdlet BPA Bestpractices

You can also read about

To know more PowerShell cmdlets(Commands) on BestPractices click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *