Not sure if this has been posted already (searched 6 pages back for PowerShell and couldn’t find)..
I’ve just done a Clean Install of Win 7 x64 and wanted an easy way to search for Updates to hide, as well as logging which ones show up on each check, which I’ve hidden, which I’ve already installed etc, (searching in Windows is only easy for Installed ones).
So I made some very minor modifications to this PowerShell script by Boe Prox: https://gallery.technet.microsoft.com/scriptcenter/0dbfc125-b855-4058-87ec-930268f03285
I’ve created a pack of 3 scripts, bear in mind these include Optional updates too:
Get-PendingUpdates.ps1 – (Excludes Hidden)
Get-InstalledUpdates.ps1
Get-HiddenUpdates.ps1
Available Here (for now): https://we.tl/pTKBGdMLF2
These work on Windows 7 x64 at least. Presumably other Windows versions too.
Someone more inclined will likely want to host it somewhere more permanent, and also to make it a bit more user friendly, but here’s what I do:
- Download & Unzip the folder.
- Make sure .Net Framework 4 (or above) is installed. On a Clean Install of Win 7 x64 SP1 I just needed KB2901983, (.Net Framework 4.5.2).
- Make sure PowerShell 3.0 is installed. I had to manually google & download & install KB2506143, (Windows Management Framework 3.0).
- Open the unzipped folder (with the 3 .ps1 scripts) & Right-Click (in a blank area) & select Open Command Window Here.
- Type “PowerShell”
- Type: “Set-ExecutionPolicy Unrestricted” – (Remember to set this back to Restricted when finished!)
- To run the GetPendingUpdates script…
- Type: “. .\Get-PendingUpdates.ps1” – Include the double dot.
- Type: “Get-PendingUpdates -Computername MYCOMPUTERNAME | Export-Csv C:\PendingUpdates.csv” (Changing MYCOMPUTERNAME to your Computer Name, JerrysComp or whatever you have it set to in Control Panel > System).
- To run the GetInstalledUpdates Script…
- Type: “. .\Get-InstalledUpdates.ps1”
- Type: “Get-InstalledUpdates -Computername MYCOMPUTERNAME | Export-Csv C:\InstalledUpdates.csv”
- To run the GetHiddenUpdates Script…
- Type: “. .\Get-HiddenUpdates.ps1”
- Type: “Get-HiddenUpdates -Computername MYCOMPUTERNAME | Export-Csv C:\HiddenUpdates.csv”
- Wait for it to finish (when the Command Prompt is ready for new input).
- The Update Lists will be in your C: drive as .csv files.
- When finished exporting your lists, Type: “”Set-ExecutionPolicy Restricted”
The contents don’t seem to be 100% accurate, but should be close enough.
The Pending script was missing 1 update, (not sure exactly which yet since I have 188 Pending heh, I’ll try see if I can spot it later), and the Installed script listed a few I don’t have installed yet, (Update for Microsoft Visual Studio Team Foundation Server 2013 (KB2989279) was one of them, which I definitely don’t have on this clean install, maybe it’s picking it up from my old OS installation on a different Drive?).
Hope it’s useful. I made myself a lil Excel macro to loop through the rows and flag any that appear on my list to Hide. Made it a lot faster than looking by eye.
I’m going to try and save lists of what’s Pending / Hidden / Installed at each stage of my clean install, hopefully it will help those of you who are curious about which show for what users at different stages of a clean install of Win 7.
satrow EDIT: attempted to clean up download link.