win32serviceutil - Grant python permissions to run windows services -


i'm having quite hard time trying start windows service python using:

   win32serviceutil.startservice("service-name") 

it returns:

   file "c:\python27\lib\site-packages\win32\lib\win32serviceutil.py", line 412, in startservice hscm = win32service.openscmanager(machine,none,win32service.sc_manager_all_access)    error: (5, 'openscmanager', 'access denied.') 

i've read start windows service user must have administration rights. username not hidden administrator account can perform administration tasks on computer. question is, best way allow python start given service? know disabling user account control can start service reduce lot security of machine. isn't there way change permissions of service or grant administration rights python start services (or better...just service)?

many thanks


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -