V
V
vadimeasy2021-11-12 16:45:47
Python
vadimeasy, 2021-11-12 16:45:47

How to manage services and Windows Firewall in Python?

Hello, tell me where can I find information on managing windows in python. I heard that there is a pywin32 library, but I can not find normal documentation for this library. Maybe there is something else for these operations? I need to make a few services in automatic mode and restart them, also set the right port on the firewall. Please tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-11-12
@vadimeasy

Well, use system () with a call to cmd commands.
Google for "schtask" and call PS code from Python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question