I would like to use pywin32 API with python running on a remote windows server to operate the Microsoft suite (Outlook etc.) that is located on a local machine (from which I connect to the remote server).
The following code is using the win32com package in order to Dispatch an Outlook application:
import win32com.client as wc
import os
win_local_path = os.path.join(r"\\local_machine", "C")
os.chdir(win_local_path)
outlook = wc.Dispatch("Outlook.Application").GetNamespace("MAPI")
This fails as the win32 client is looking for the Outlook Applications on the server where python is running, not on the local machine where the outlook application lives. There are no issues in locating the local machine with e.g. os.listdir(win_local_path).
Is there any way to tell the pywin32 client to look for the application on the local system?