Share via


Windows 2012 Core Survival Guide – Running and viewing Best Practice Analyzer

Learn about my 2012 Core Survival Guide here.

Running and viewing Best Practice Analyzer

 Listing the Best Practice Analyzer

 PowerShell Command:

 Get-BPAModel | format-table ID,name -autosize

 You will need to know the "ID" and the correct spelling in order to invoke the BPA.

 

 Invoking the Best Practice Analyzer

 You can run the Best Practice Analyzer using the Invoke-BPAModel cmdlet.

 PowerShell Command:

 Invoke-BPAModel Microsoft/Windows/FileServices

 In the output below notice the success attribute.  Use this attribute to determine if the analyzer ran completely.

 

 Getting the results of the BPA

 You can view the results of the Best Practice Analyzer using the Get-BPAResult cmdlet.

 PowerShell Command:

 get-BPAresult Microsoft/Windows/FileServices | export-csv bpaoutput.csv

 The results can also be displayed to the screen but often times it scrolls past the buffer.  To avoid this issue, use the export-csv command to place the output in an csv file.  This file is best reviewed using Excel.  The sample output below was opened using NotePad.exe for illustration purposes.

 

 I hope you found this useful.  Please leave me a comment.  Let me know if there are any core tasks you would like me to cover.

 Bruce

Comments