Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Available Windows Updates scanner not pulling from WSUS #109

Open
jhusd opened this issue May 7, 2024 · 1 comment
Open

Get Available Windows Updates scanner not pulling from WSUS #109

jhusd opened this issue May 7, 2024 · 1 comment

Comments

@jhusd
Copy link

jhusd commented May 7, 2024

I've deployed this scanner in our test environment which includes a WSUS server and endpoints setup to use WSUS for updates. It doesn’t appear that the scanner is taking WSUS into account. The results it’s return includes updates which are not approved in WSUS. Such as the VMware Display driver in the screenshot. I've setup the scanner with the -wsus parameter in place (see screenshot).
image
image

@jhusd
Copy link
Author

jhusd commented May 20, 2024

I believe I found the issue with the WSUS parameter not working. In the powershell script (Get Available Windows Updates.ps1) the portion of code evaluating the parameter ($WSUS) was calling the wrong update service:

If ($WSUS) {
$GWU = Get-WindowsUpdate -WindowsUpdate

From what I read here (https://gist.github.com/cfebs/c9d83c2480a716f6d8571fb6cc80fd59) the correct call to use WSUS was this:
$GWU = Get-WindowsUpdate -ServiceID '3da21691-e39d-4da6-8a4b-b43877bcb1b7'

So I changed it in the code and it actually worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant