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:
- https://gallery.technet.microsoft.com/scriptcenter/0dbfc125-b855-4058-87ec-930268f03285
- https://serverfault.com/questions/135191/shorcut-to-list-pending-updates-in-microsoft-windows
i can't find direct way access wsus information. might able them using pywin32 or ctypes, unable find examples.
Comments
Post a Comment