Using PowerShell to hide Windows 10 update methods

Source: Internet
Author: User

1 工欲善其事, its prerequisite. This article uses the Windows Update PowerShell Module, the PowerShell Cmdlet, so you need to go to the Web to download it first.

2 The Pswindowsupdate folder that is extracted from the downloaded ZIP package is copied to the following directory:

C:windowssystem32windowspowershellv1.0modules

3 Search Powershell and right-click to open with Administrator privileges

By default, PowerShell is restricted from executing any external scripts, and we need to use the following command to unlock the restrictions:

Set-executionpolicy Unrestricted

4 after the default execution policy is changed we can execute the script freely in the PowerShell, we first use the following command to get the current list of updates available to Windows 10:

Get-wulist

5 When all available updates are listed, we can hide unwanted patches by title (title):

Hide-wuupdate-title "microsoft*"

Please note that you can use wildcard characters to change the parameters behind the title to the patch title you want to hide.

6 of course, one of the most straightforward ways to make mistakes is to use KB IDs to hide patches:

Hide-wuupdate-kbarticleid KB3080333

7 It has been noted that in the status (state) with H logo is actually a hidden patch, if you no longer want to hide it, to restore, you can use Get-wulist to list all available patches, and then use the following command to close the hidden properties can be restored:

Hide-wuupdate-kbarticleid Kb3080333-hidestatus: $false

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.