title: Creating COM object via ssh (issue with AutoCAD.Application)
body: <p>I'm trying to run the following simple pyhton script from ssh:</p>
  
  <pre><code># -*- coding: utf-8 -*-
  
  import comtypes.client
  
  acad = comtypes.client.CreateObject("AutoCAD.Application")
  acad.Visible = True
  </code></pre>
  
  <p>This works fine from the local machine but not via ssh, I'm getting the error: </p>
  
  <pre><code>Traceback (most recent call last):                                                                                                                                                                                                                                            
    File "C:/Ab*******/comtypetest.py", line 6, in &lt;module&gt;                                                                                                                                                                                                                     
      acad = comtypes.client.CreateObject("AutoCAD.Application")                                                                                                                                                                                                                
    File "C:\Python27\lib\site-packages\comtypes\client\__init__.py", line 227, in CreateObject                                                                                                                                                                                 
      clsid = comtypes.GUID.from_progid(progid)                                                                                                                                                                                                                                 
    File "C:\Python27\lib\site-packages\comtypes\GUID.py", line 78, in from_progid                                                                                                                                                                                              
      _CLSIDFromProgID(unicode(progid), byref(inst))                                                                                                                                                                                                                            
    File "_ctypes/callproc.c", line 945, in GetResult                                                                                                                                                                                                                           
  WindowsError: [Error -2147221005] Invalid class string
  </code></pre>
  
  <p>Not that creating InternetExplorer.Application works from ssh but windows doest not get Visible.</p>
  
  <p>Can someone please tell me how to avoid this issue?</p>
  
  <p><strong>EDIT:</strong>
  The script:</p>
  
  <pre><code>#!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  import win32com.client
  lib = win32com.client.Dispatch("AutoCAD.Application")
  </code></pre>
  
  <p>Also give an error:</p>
  
  <pre><code>Traceback (most recent call last):                                                                                                                                                                                                                                            
    File "C:/Ab*******/comtypetest.py", line 6, in &lt;module&gt;                                                                                                                                                                                                                     
      acad = comtypes.client.CreateObject("AutoCAD.Application")                                                                                                                                                                                                                
    File "C:\Python27\lib\site-packages\comtypes\client\__init__.py", line 227, in CreateObject                                                                                                                                                                                 
      clsid = comtypes.GUID.from_progid(progid)                                                                                                                                                                                                                                 
    File "C:\Python27\lib\site-packages\comtypes\GUID.py", line 78, in from_progid                                                                                                                                                                                              
      _CLSIDFromProgID(unicode(progid), byref(inst))                                                                                                                                                                                                                            
    File "_ctypes/callproc.c", line 945, in GetResult                                                                                                                                                                                                                           
  WindowsError: [Error -2147221005] Invalid class string
  </code></pre>
  
  <p>As for the first one, IE is launching without showing up.</p>