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

StackOverflow https://stackoverflow.com/questions/14758763

  •  07-03-2022
  •  | 
  •  

Вопрос

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?

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top