Re: [python-win32] Dispatching something that requires elevation

2018-06-11 Thread Tim Roberts
Simon McConnell wrote: > > Sorry, I'm not sure what you mean by spawn the COM access in a > separate process.  This is my first time dabbling with COM objects. All I meant was creating a second Python process to do all the COM stuff.  I think you said that the COM access works from a non-elevated

Re: [python-win32] Dispatching something that requires elevation

2018-06-11 Thread Simon McConnell
8 at 02:00 wrote:Date: Sat, 9 Jun 2018 18:48:28 -0700 > From: Tim Roberts > To: Python-Win32 List > Subject: Re: [python-win32] Dispatching something that requires > elevation > Message-ID: > Content-Type: text/plain; charset=utf-8 > > On Jun 8, 2018, at

Re: [python-win32] Dispatching something that requires elevation

2018-06-11 Thread Simon McConnell
Thanks for the reply. I have tried running the python script as admin. When I do run as admin, I get the following error: pywintypes.com_error: (-2146959355 <(214)%20695-9355>, 'Server execution failed', None, None). I've noticed, by watching Task Manager, that the application opens and closes a

Re: [python-win32] Dispatching something that requires elevation

2018-06-09 Thread Tim Roberts
On Jun 8, 2018, at 10:11 PM, Simon McConnell wrote: > > I am trying to dispatch a COM interface of a program that is set to "Run as > Administrator" in the Compatibility Settings of its properties. Running the > script w/o elevation results in a 'requires elevation' error. Running the >

Re: [python-win32] Dispatching something that requires elevation

2018-06-09 Thread Vernon D. Cole
look in github.com/salt-bevy/sudo.py for a module which will request elevated privileges for a Python script running as a normal user. Perhaps that can help create a solution for your use case. There is a sample call

[python-win32] Dispatching something that requires elevation

2018-06-09 Thread Simon McConnell
Hi, I am trying to dispatch a COM interface of a program that is set to "Run as Administrator" in the Compatibility Settings of its properties. Running the script w/o elevation results in a 'requires elevation' error. Running the script with elevation results in a 'server execution failed'