I've been able to create a windows service using Python and following this tutorial: http://ryrobes.com/python/running-python-scripts-as-a-windows-service/
However I tried to implement a script in this that opens up a new Outlook mail via COM. This script works outside of the service but I seem to have traced the problem back to this line:
obj = win32com.client.Dispatch("Outlook.Application")
on looking into this further, it seems that with UAC in Vista and Windows 7, came blocking of services interacting with users. More Info - http://msdn.microsoft.com/en-us/library/windows/desktop/ms683502%28v=vs.85%29.aspx
So my question is: what's the best way around this? I have a python script that works when I ensure to turn it on, but leaving a batch/cmd file in the startup directory seems kinda wrong.
Thanks in advance for any ideas!
Windows 7 x64 (I'm also bound by Enterprise Group policy. I have local admin rights only)