How to hide updates on Windows 11 from PowerShell

Configurare noua (How To)

Situatie

To hide an update on Windows 11 using PowerShell, use these steps:

Solutie

Pasi de urmat

Open Start.

Search for PowerShell, right-click the top result, and select the Run as administrator option.

Type the following command to install the PowerShell module to update Windows 11 and press Enter:

Install-Module PSWindowsUpdate

Type “A” to accept and install the module and press Enter.

Type the following command to allow the module to run in PowerShell and press Enter:

Set-ExecutionPolicy RemoteSigned

Type the following command to check for Windows 11 updates and press Enter:

Get-WindowsUpdate

Type the following command to select and block the update with PowerShell and press Enter:

Hide-WindowsUpdate -KBArticleID KBNUMBER

In the command, make sure to replace KBNUMBER with the update number you want to block.  This example blocks the KB5009469 update:

Hide-WindowsUpdate -KBArticleID KB5009469

Type “A” to accept and install the module and press Enter.

Optional) Type the following command to select and block update when the KB number is not available and press Enter:

Hide-WindowsUpdate -Title "UPDATE-TITLE"

In the command, replace UPDATE-TITLE with the update number to skip. 
You only need a part of the title to make it a match. 
This example blocks the “2021-05 Cumulative Update” package:
Hide-WindowsUpdate -Title "2022-01 Cumulative Update"

9. Type A to accept and install the module and press Enter.

Once you complete the steps, the PowerShell tool will block the update, preventing the system from downloading and installing it, and the status will appear with an H indicating that it is now hidden.

Tip solutie

Permanent

Voteaza

(0 din 2 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?