Cannot find an overload for "PolicyStore"-on sql server 2016

Apr 1, 2016 at 12:50 PM

I'm testing framework on sql server 2016 and windows 8.1 platform. When I executed the powershell script,I got an error message like below.
.\EPM_EnterpriseEvaluation_412.ps1 -ConfigurationGroup "EPBM_TEST" -PolicyCategoryFilter "Database" –EvalMode “Check”

new-object : Cannot find an overload for "PolicyStore" and the argument count:"1".
At C:\epbm\install\ps\EPM_EnterpriseEvaluation_412.ps1:196 char:16
  • $PolicyStore = new-object Microsoft.SqlServer.Management.DMF.PolicyStore($conn)
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:) [New-Object], MethodException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
I created server group on CMS called EPBM_TEST and new policy category called database.
Is this issue related with the versions that I'm using?

Aug 1, 2016 at 4:36 PM
This error indicates the PowerShell can't connect to your defined variable for PolicyStore in your EPM_EnterpriseEvaluation_412.ps1 file. If you open the file you will see that you need to define the server where the output database exists along with the policies that will be used for evaluation. Your command is running against your EPBM_TEST CMS group and is filtering by the Policy Category Database that you must have defined for your policies. Hope this helps.