This project is read-only.
1
Vote

Microsoft.SqlServer.Management.Dmf.PolicyObject is not derived from EnumObject.

description

Hi,

I am using EPM Framework v4.1.2 on a Windows 2012 R2 server.
If I use a PowerShell command to run the script EPM_EnterpriseEvaluation_412.ps1, it works.
If I try to use it as a SQL job (on SQL 2016), it fails with the following message:

A job step received an error at line 197 in a PowerShell script. The corresponding line is '$PolicyStore = new-object Microsoft.SqlServer.Management.Dmf.PolicyStore($conn)
'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Exception calling ".ctor" with "1" argument(s): "Microsoft.SqlServer.Management.Dmf.PolicyObject is not derived from EnumObject."
Microsoft.SqlServer.Management.Dmf.PolicyObject is not derived from EnumObject.

Does anyone know what the problem could be?
Thanks in advance for your help.

comments