Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / PowerShell / How to Hide (Block) a Specific Windows Update

March 3, 2025 PowerShellWindows 11Windows Server 2022

How to Hide (Block) a Specific Windows Update

Sometimes, after you install a Windows update, you might find that the operating system, a particular program, or a driver stops working or causes conflicts. In this case, you must uninstall the update causing the problem and block it from re-installation. In this article, we explain how to temporarily pause update installations in Windows and how to completely block an unwanted update by hiding it from the Windows Update service.

Contents:
  • Using the Microsoft Show and Hide Updates Tool
  • Temporarily Pause Updates in Windows
  • Block the Installation of Certain Windows Updates Using PowerShell

Using the Microsoft Show and Hide Updates Tool

If you have already installed an unwanted update causing the problem, you can remove it by going to Settings -> Windows Update -> View Update History -> Uninstall updates. Click on the update in the list and select Uninstall.

Uninstall Windows update

You can also remove the update by using the command prompt. Use the PowerShell command to list updates sorted by installation date:

Get-HotFix | Sort-Object -Property InstalledOn -Descending

Find the update number in the list (KBxxxxx) and delete it by KB ID:

wusa /uninstall /kb:5048161

wusa /uninstall KB

However, after a while, Windows Update will automatically attempt to reinstall the update you removed (Windows Update Group Policy can override automatic installation settings).

To completely block a specific update from the Windows Update service, you can use the official Microsoft ‘Show or Hide Updates’ tool (wushowhide.diagcab ).

  1. Download the Show or hide utility from the Microsoft website
  2. Run the wushowhide.diagcab
  3. Select Hide updates wushowhide.diagcab
  4. In the list, select the update(s) that you want to hide. Hide specific update
  5. The Windows Update service won’t attempt to install a hidden update until you make it visible.

To make the update available for installation, you need to select Show hidden updates in the wushowhide.diagcab utility and unhide the update.

Unhide update in Windows

If you have WSUS Update Server installed, you can use the Approved for Removal option to block the installation of a specific update, or even automatically uninstall it from computers where it has been installed. See the article Approving Updates on WSUS for more details.

Temporarily Pause Updates in Windows

In Windows 10 and 11, users can pause the installation of Windows updates for up to 35 days. This method is typically used when a bug has been discovered in a released update and you want to wait for a fix.

Pause automatic Windows updates

To pause the installation of updates for 7 days, click the Pause updates for 7 more days in Settings -> Windows Updates. You can pause updates 5 times for 7 days (for a total of 35 days). This should give Microsoft engineers enough time to confirm that the update has a widespread problem and either fix or recall it.

To find out the date on which the installation of the updates is delayed, you can use the PowerShell :

Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'| Select-Object PauseUpdatesExpiryTime

PauseUpdatesExpiryTime

Or use a simple script to pause the update installation:

$pause = (Get-Date).AddDays(35)
$pause = $pause.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings' -Name 'PauseUpdatesExpiryTime' -Value $pause

This extends the update pause to a maximum of 35 days.

Pausing windows update using PowerShell

Block the Installation of Certain Windows Updates Using PowerShell

To block a specific update from being installed in Windows, you use the PowerShell cmdlets provided by the PSWindowsUpdate module. Install the module on the computer if it is not already installed:

Install-Module -Name PSWindowsUpdate

Restart the PowerShell console, and then allow the module cmdlets to run in the current session (to avoid changing the global PowerShell Execution Policy settings):

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

List the updates that are available for installation:

Get-WindowsUpdate

Get-WindowsUpdate

To hide a specific update, specify its number (KB) in the following command:

Hide-WindowsUpdate -KBArticleID KB5048652 -Verbose

Hide-WindowsUpdate

Hidden updates will not be displayed in the list of available updates when scanning with the Get-WindowsUpdate command. To view hidden updates, run:

Get-WindowsUpdate -IsHidden

Hidden updates in the Status column have an H (hidden) attribute.

To unhide updates and allow them to be installed, run

Show-WindowsUpdate -KBArticleID KB5048652

list hidden windows updates via powershell

Users often need to block the installation of certain device driver updates (and prevent Windows from automatically updating this device driver). However, if you use Get-WindowsUpdate to list available updates, you will see that driver updates are missing a KB number. In this case, you can block the driver from updating by its ID:

$Updates = Get-WindowsUpdate -WindowsUpdate -UpdateType Driver
$Updates | Select Title,Description -Expand Identity

Copy the update IDs from the results and hide the driver update by its ID:

Hide-WindowsUpdate -UpdateID "3f6ba9a7-b031-4990-808f-69a9e1ef6a91"

Hide (block) specific driver update in Windows

0 comment
3
Facebook Twitter Google + Pinterest
previous post
Maximum Concurrent Connections Limit in Windows 10 and 11
next post
VMware Workstation: Slow VMs Performance on Windows

Related Reading

Configure NTP Time Source for Active Directory Domain

May 6, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Cannot Install Network Adapter Drivers on Windows Server

April 29, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Assign (Passthrough) a Physical GPU to a Hyper-V Virtual Machine
  • Run PowerShell Scripts on a Schedule with Task Scheduler
  • Check Windows 11 Hardware Readiness with PowerShell Script
  • Extend an Expired User Password in Active Directory
  • How to Add or Remove Pinned Folders to Quick Access with PowerShell and GPO
  • How to Enable and Configure Wake-on-LAN (WoL) in Windows
  • How to Find Windows Version and Build Number Installed
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top