Hello,
I am troubleshooting a failing BPA scan on a Hyper-V server. Initially I ran into the well documented script permission issues, but after clearing those up I am now presented with a different error and not able to complete a scan for the Hyper-V role. The output I get from both the GUI and PS is very similar, so I have pasted the PowerShell output below. I found two other forum posts (here and here) with user that mention an error similar to this, but no resolution was presented. I am working with a Server 2019 system.
PS C:\Windows\system32> Invoke-BpaModel -ModelId Microsoft/Windows/Hyper-V
Invoke-BpaModel : An error occurred while parsing EntityName. Line 3, position 4.
At line:1 char:1
+ Invoke-BpaModel -ModelId Microsoft/Windows/Hyper-V
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-BpaModel], XmlException
+ FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.BestPractices.Cmdlets.RunScanCommand
The output is the same when I run Invoke-BpaModel -Id Microsoft/Windows/Hyper-V and I am also unable to run a full BPA scan (Get-BPAmodel | Invoke-BPAmodel), it halts and gives the same error (warnings omitted, let me know if you need to see them):
Invoke-BPAmodel : An error occurred while parsing EntityName. Line 3, position 4.
At line:1 char:16
+ Get-BPAmodel | Invoke-BPAmodel
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-BpaModel], XmlException
+ FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.BestPractices.Cmdlets.RunScanCommand
Is someone able to point me in a direction to a resolution for this?
Thank you.


