Checking with VBScript if server has all critical updates installed — managed by WSUS

蹲街弑〆低调 提交于 2019-12-12 02:05:41

问题


I am developing a script that gets deployed and executed on a server (so it is as if I am running it locally and not remote).

I need to check to see if all critical updates are installed. Each server has a WSUS server managing its updates. Is there a way for me to do this with VBScript.

I was looking at this post, Windows Update Check with vbscript

but I don't know if it will help me since I'm not too familiar with how windows update works, but I only need critical updates.

If I follow the method that the selected answer in the post I linked, will

CreateObject("Microsoft.Update.Session")

work if WSUS is managing updates? What do I use to only grab updates that WSUS deems critical?


回答1:


The Microsoft.Update.Session object will query whatever update server a host is pointed towards, be it Microsoft's servers or a local WSUS. It reports only approved updates that apply to the host.



来源:https://stackoverflow.com/questions/14758763/checking-with-vbscript-if-server-has-all-critical-updates-installed-managed-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!