Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
Tim Roberts wrote: > Bill Janssen wrote: > > I've got an MSI installer for installing my UpLib server. I use the > > following bit of code in a custom action to grant the user the right to > > "log on as a service", so that the service can run under their user-id: > > > > import win32api, w

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Dave Angel
On 2:59 PM, Tim Roberts wrote: Tim Roberts wrote: However, I admit that NT security is a twisty maze of little passages, all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... But the adventure is

Re: [python-win32] Problem using win32com.client.Dispatch on Win7 64bit

2010-10-14 Thread Mark Hammond
On 15/10/2010 3:40 AM, Eileen Wei wrote: Hi everyone, I am new to this group. I am not sure how to do search on the archives so if my question is duplicate please forgive me J I have Python 2.7.amd64 and pywin32-214.win-amd64-py2.7 installed on my Win7 64bit machine. I am trying to use a COM o

[python-win32] Problem using win32com.client.Dispatch on Win7 64bit

2010-10-14 Thread Eileen Wei
Hi everyone, I am new to this group. I am not sure how to do search on the archives so if my question is duplicate please forgive me :) I have Python 2.7.amd64 and pywin32-214.win-amd64-py2.7 installed on my Win7 64bit machine. I am trying to use a COM object (the source of the COM is in C++ a

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
Tim Roberts wrote: > > However, I admit that NT security is a twisty maze of little passages, > all different, so it's quite possible this is just a wrong turn. And I wonder how many of you are old enough to get the reference in that sentence... -- Tim Roberts, t...@probo.com Providenza & Boeke

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
Tim Roberts wrote: > Bill Janssen wrote: > > I've got an MSI installer for installing my UpLib server. I use the > > following bit of code in a custom action to grant the user the right to > > "log on as a service", so that the service can run under their user-id: > > > > import win32api, w

[python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Bill Janssen
I've got an MSI installer for installing my UpLib server. I use the following bit of code in a custom action to grant the user the right to "log on as a service", so that the service can run under their user-id: import win32api, win32security username = win32api.GetUserNameEx(win32api.Na

Re: [python-win32] granting SeServiceLogonRight on a network account with pywin32?

2010-10-14 Thread Tim Roberts
Bill Janssen wrote: > I've got an MSI installer for installing my UpLib server. I use the > following bit of code in a custom action to grant the user the right to > "log on as a service", so that the service can run under their user-id: > > import win32api, win32security > > username = w