Download / Install Windows Updates from Python

I am working on a script to automate the installation of Windows updates that I can deploy to multiple machines, so I don’t have to worry about updating them manually. I would like to write this in Python, but could not find anything about how this will be done. I need to know how to search for updates, download updates, and install them all from a python script. Any help would be great!

+3
source share
2 answers

Let me start with this: I do not think the Python script is the best tool to work with. If you want to perform enterprise-level update management (for example, for all computers on a network), you should seriously consider using existing MS tools .

Having said that, here is how you can do it:

, . , , , , python .

+2

Windows COM API, . VBScript ; python COM-. VBscript Microsoft.

+1

Source: https://habr.com/ru/post/1794873/


All Articles