How to deny/hide/skip a windows update on Server 2022

Jim 306 Reputation points
2024-08-03T16:04:21.4333333+00:00

I know I've done this in the past but for the life of me I can't find it. There is an update in the queue waiting to be installed and I don't want to install it. But I do want the others in the queue to install. Is the only way to install all of them then uninstall the one I don't want?

I am pretty sure a few months ago I had a similar situation and was able to "hide" it from installing.

This is what I see:

User's image

I don't want KB5040437.

Thanks

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marcin Policht 49,715 Reputation points MVP Volunteer Moderator
    2024-08-03T17:05:18.6566667+00:00

    Try https://www.thewindowsclub.com/hide-windows-updates-using-powershell


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Marcin Policht 49,715 Reputation points MVP Volunteer Moderator
    2024-08-04T00:45:52.0266667+00:00

    You seem to be missing the fact that this is a module hosted on PowerShell Gallery ( https://www.powershellgallery.com/packages/PSWindowsUpdate/2.2.1.5 ) and is based on a public GitHub repo https://github.com/mgajda83/PSWindowsUpdate/tree/main/PSWindowsUpdate

    I assume you are familiar with PowerShell Gallery - but if not, you can read more about it at https://learn.microsoft.com/en-us/powershell/gallery/getting-started?view=powershellget-3.x

    You will get the same prompt if you try to install any module from PowerShell Gallery (including, e.g. Azure PowerShell modules)

    You obviously could review the existing GitHub repo and use the underlying APIs to write a module yourself (or call them directly)


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  3. Jim 306 Reputation points
    2024-08-06T15:17:56.93+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.