On this article, we are going to discover the options and advantages of PSWindowsUpdate and delve into the way it can improve your Home windows replace expertise. Whether or not you might be an IT skilled accountable for managing a community of computer systems or a person person searching for a extra environment friendly option to deal with updates, PSWindowsUpdate can turn into an indispensable software in your toolkit.
The right way to set up the PSWindowsUpdate Module?
To put in the PSWindowsUpdate module, comply with the steps beneath:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- Earlier than putting in any module, be certain that the PowerShell execution coverage permits script execution. To test the execution coverage, sort the next command and press Enter:
Get-ExecutionPolicy
If the coverage is ready to “Restricted” or “AllSigned,” chances are you’ll want to alter it to “RemoteSigned” or “Unrestricted” to put in the module. To vary the execution coverage, run PowerShell as an administrator and sort:
Set-ExecutionPolicy RemoteSigned
Affirm the change by coming into “Y” when prompted.
- To put in the PSWindowsUpdate module, use the next command and press Enter:
Set up-Module -Identify PSWindowsUpdate -Drive
The -Drive
parameter ensures that the module is put in with out requiring person affirmation.
- After the set up is full, confirm that the module was put in efficiently. Run the next command:
Get-Module -Identify PSWindowsUpdate
You need to see details about the put in module, together with the title, model, and creator.
The right way to test for Accessible Home windows Updates?
To test for out there Home windows updates utilizing the PSWindowsUpdate module, comply with these steps:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- In the event you haven’t executed so already, import the PSWindowsUpdate module by operating the next command and urgent Enter:
Import-Module -Identify PSWindowsUpdate
- To test for out there Home windows updates, use the next command and press Enter:
Get-WindowsUpdate
This cmdlet will question the Home windows Replace service in your system and retrieve details about out there updates.
- The command will show an inventory of obtainable updates together with particulars such because the replace title, description, and set up standing. You’ll be able to assessment this info to find out which updates you need to set up.
PSWindowsUpdate supplies numerous parameters and filters that you should use to customise the output and concentrate on particular updates.
Eradicating Particular Home windows Updates
To exclude particular Home windows updates from putting in utilizing the PSWindowsUpdate module, you’ll be able to make the most of the “Cover-WindowsUpdate” cmdlet. Observe the steps beneath:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- In the event you haven’t already imported the PSWindowsUpdate module, run the next command and press Enter:
Import-Module -Identify PSWindowsUpdate
- To view the record of obtainable Home windows updates, you should use the “Get-WindowsUpdate” cmdlet. This step is non-obligatory however useful for figuring out the updates you need to exclude. Run the next command:
Get-WindowsUpdate
Overview the record of updates and be aware of the replace(s) you want to exclude.
- To exclude particular Home windows updates from putting in, use the “Cover-WindowsUpdate” cmdlet adopted by the replace’s KB quantity(s). For instance, if you wish to exclude an replace with the KB quantity “KB1234567”, run the next command:
Cover-WindowsUpdate -KBArticleID "KB1234567"
When you have a number of updates to exclude, you’ll be able to separate them with commas. For example:
Cover-WindowsUpdate -KBArticleID "KB1234567", "KB9876543"
- To substantiate that the updates have been efficiently excluded, you should use the “Get-WindowsUpdate” cmdlet once more. This time, it’ll show the record of updates, however the excluded updates ought to not seem.
The right way to set up Home windows Updates?
Getting All Accessible Updates
To put in Home windows updates utilizing the PSWindowsUpdate module, comply with these steps:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- In the event you haven’t already imported the PSWindowsUpdate module, run the next command and press Enter:
Import-Module -Identify PSWindowsUpdate
- To view the record of obtainable Home windows updates, use the next command and press Enter:
Get-WindowsUpdate
This command will show an inventory of obtainable updates together with particulars such because the replace title, description, and set up standing. Overview the record to find out which updates you need to set up.
- To put in all out there updates, run the next command and press Enter:
Set up-WindowsUpdate -AcceptAll -AutoReboot
This command will provoke the set up of all out there updates, accepting any prompts or confirmations robotically. The “-AutoReboot” parameter ensures that the system will reboot if mandatory after the updates are put in.
The right way to Test the Home windows Replace Historical past?
To test the Home windows Replace historical past utilizing the PSWindowsUpdate module, comply with these steps:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- In the event you haven’t already imported the PSWindowsUpdate module, run the next command and press Enter:
Import-Module -Identify PSWindowsUpdate
- To view the Home windows Replace historical past, use the next command and press Enter:
Get-WindowsUpdateLog
This command will fetch the Home windows Replace log, which comprises details about the updates which have been put in in your system.
- The output of the command will show the replace historical past, together with particulars such because the replace title, KB quantity, set up date and time, and set up consequence (success, failed, and so forth.). You’ll be able to scroll by way of the log to view the entire replace historical past.
The right way to Take away Current Home windows Updates?
To take away present Home windows updates utilizing the PSWindowsUpdate module, comply with these steps:
- Press the Home windows key in your keyboard, sort “PowerShell,” after which click on on “Home windows PowerShell” to open the PowerShell console.
- In the event you haven’t already imported the PSWindowsUpdate module, run the next command and press Enter:
Import-Module -Identify PSWindowsUpdate
- To view the record of put in Home windows updates, use the next command and press Enter:
Get-WindowsUpdate -Put in
This command will show an inventory of put in updates together with particulars such because the replace title, KB quantity, set up date, and standing.
- To take away a particular replace, use the “Take away-WindowsUpdate” cmdlet adopted by the KB quantity(s) of the updates you need to take away. For instance, to take away an replace with the KB quantity “KB1234567”, run the next command and press Enter:
Take away-WindowsUpdate -KBArticleID "KB1234567"
When you have a number of updates to take away, separate them with commas. For example:
Take away-WindowsUpdate -KBArticleID "KB1234567", "KB9876543"
- After operating the elimination command, you’ll be prompted to substantiate the elimination of every replace. Press “Y” and Enter to proceed with the elimination. Relying on the variety of updates being eliminated, chances are you’ll want to substantiate a number of prompts.
- Through the elimination course of, the PowerShell console will show progress updates for every replace being eliminated. Enable the method to finish.
In conclusion, the PSWindowsUpdate module is a worthwhile addition to any Home windows person’s toolkit. It simplifies the replace administration course of, enhances system safety, and saves effort and time.
By harnessing the facility of PowerShell, customers can take management of their Home windows replace expertise and guarantee their programs are at all times geared up with the newest patches, bug fixes, and enhancements.