Running a Python Service under the LocalService or NetworkService Account

Tim Golden mail at
Mon Jul 20 10:03:14 EDT 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.


More information about the Python-list mailing list