Page 1 of 1

[SOLVED] Windows Service Management

Published: May 23, 2019 - 10:49
by Patrice_minagri
Hello,

I've seen that Python commands exist for managing Windows services using functions like:
- service_delete
- service_installed
- service_stop
- service_start
, etc.

However, is there a Python function or command that allows you to configure services?

For example, can the command `sc config vmcompute start=auto` be translated into Python? If so, in what form?

Thank you.

Patrice

Re: Managing Windows Services

Published: May 24, 2019 - 1:15 PM
by sfonteneau
In Python there's:
win32service.ChangeServiceConf


But frankly, it's simpler to run

Re: Managing Windows Services

Published: May 24, 2019 - 2:58 PM
by Patrice_minagri
Thanks Simon.

So, that's what I ended up doing. But the information you provided is still good to know.