How to know if windows has pending security updates from cmd or python? -


i need know if windows has pending security updates cmd or python.

i found form cmd:

-first: execute >> c:\windows\system32\wuauclt.exe /detectnow

-after that: >> read %systemroot%\windowsupdate.log file information.

but think must easy form this.

i found c# exist library named wuapilib, exist python or style?

you can use powershell sort of thing:

i can't find direct way access wsus information. might able them using pywin32 or ctypes, unable find examples.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -