x4nth055/pythoncode-tutorials

pywintypes.error: (1058, 'StartService', 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.')

AresDragoi opened this issue · 5 comments

looks like services.py needs some tweaking as it produces continuous errors. I was not able to locate the cause of this one.
p.s.: running on windows

Hey,
Did you try to run the script as an administrator?

Yes

image
While running in an admin command prompt. Windows 10, Python 3

Same issue here. Any ideas?

zaz3 commented

Going to "Services" in Windows and enabling the "Routing and Remote Access" service worked for me. It is disabled by default.