Running a Python Service under the LocalService or NetworkService Account

Tim Golden mail at timgolden.me.uk
Mon Jul 20 16:03:14 CEST 2009


mistersexy wrote:
> I am trying to create a Windows service in Python using pywin32. I do
> not want this service to run under a user account. I want this service
> to be able to run as a LocalService, NetworkService and the like. How
> do I specify this using the win32 library? Thanks, everyone.

When you "install" the service, using the HandleCommandLine
option, specify --username= and --password options.

TJG



More information about the Python-list mailing list