PowerDesigner COM object is empty on Windows Server 2012

0

We have a problem when scripting PowerDesigner on Windows Server 2012. We don't have problems on Windows 10 and Windows 7 (we tried it on several machines).

We are starting PowerDesigner from PowerShell like this:

$PowerDesigner = New-Object -com powerdesigner.application
Add-Type -path “C:\Program Files (x86)\Sybase\PowerDesigner 16\Interop.PdCommon.dll”
Add-Type -path “C:\Program Files (x86)\Sybase\PowerDesigner 16\Add-ins\Microsoft SQL Server 2005 Analysis Service\Interop.PdPDM.dll”

On Windows Server 2012 R2 all properties of the $PowerDesigner object are set to $null. If we try to set a property to some other value we get an error. For example, the statement

$PowerDesigner.InteractiveMode = 1

fails with the following error:

Exception setting "InteractiveMode": "Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))"

The PowerDesigner version is 16.1.0.3637.

powershell
com
windows-server-2012
powerdesigner
ole-automation
asked on Stack Overflow Jun 12, 2018 by pdUser

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0