1
Vote

sql server 2016-Cannot find an overload for "PolicyStore" and the argument count:"1".

description

Hi,

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
Shell.Commands.NewObjectCommand


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?

comments