'Python win32com.client.Dispatch('ReflectionIBM.Session') via ssh

I'm trying to run a command via SSH on a vm windows in cloud. The command is sent by jenkins using a node with ssh connection. Actually everything seems to work, we're able to ececute several scripts. Unfortunately scripts using the Python command wincom32.client.Dispatch are crashing with the failure message IDispatch = pythoncom.CoCreateInstance(IDisaptch, None, clsctx, pythoncom.IID_IDispatch) pywintypes.com_error: (-2147024891, Access denied.", None, None)

The same script can be executed when I'm connected via remote to the virtual pc. Do we need to change any options of sshd config of the windows machine? Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source