Running a Hyper-v Best practices analyzer scan ? couple of PS cmdlets to send you on your way

As Microsoft do recommend you do run their BPA for hyper-v its perhaps a good idea to do it – perhaps what is interesting is they suggest you run it every month.

That being so did take the step to automate via a SCO runbook using the below cmdlets so I could take a “hands off” approach to it.

To start a scan using the Hyper-V best practice analyzer, type the following command:

Invoke-BpaModel –BestPracticesModelId Microsoft/Windows/Hyper-V

After running the Hyper-V BPA, you can use the Get-BPAResult command to analyze the results. The following command shows the BPA scan results:

Get-BpaResult –BestPracticesModelId Microsoft/Windows/Hyper-V

Voila! your good to go

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.