![]() |
MS-DEFCON 2:
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it.
|
-
Patch Lady – scanning for updates
Home › Forums › AskWoody blog › Patch Lady – scanning for updates
This topic contains 15 replies, has 10 voices, and was last updated by
anonymous 2 months, 3 weeks ago.
-
AuthorPosts
-
https://www.csoonline.com/article/3321140/windows-security/how-to-use-powershell-to-scan-for-windows-10-security-updates.html I know many of you alrea
[See the full post at: Patch Lady – scanning for updates]Susan Bradley Patch Lady
-
Can someone paste the script here? I don’t want to sign up for one stupid article.
-
Can someone paste the script here? I don’t want to sign up for one stupid article.
There is no such thing like free money or free beer.
What is your contribution to get trained for free? -
The only pertinent info displayed after the registration break in the article is the single command to initiate the search for updates within powershell.
Since it’s Susan’s article, I’ll leave it up to her to post the command here if she wants to.
-
anonymousAgree it is too bad you have to give out your information to yet another organization in order to read the Article.
Remember, if you dont have to pay for the product …. You are the product!
-
anonymousThank you
-
-
For what it’s worth, I’ve been using “UsoClient.exe startscan” from command prompt. I don’t recall if it starts installing anything, but it definitely scans. I believe it respects your GPO settings. Another method from powershell is “(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()” without the quotes.
-
-
stupid article.
Just wondering whether you noticed that author’s name!
Group A (but Telemetry disabled Tasks and Registry)
Win 7 64 Pro desktop
Win 10 32 Home portable -
anonymousIn my opinion it is a better way to use the build-in abilities so that you don’t need to install something. Here is a very short version of a script I use (it’s a version without error handling and company only stuff).
$SearchResult = $(New-Object -ComObject Microsoft.Update.Searcher).Search(“IsInstalled=0”).Updates
$Downloader = $(New-Object -ComObject Microsoft.Update.Session).CreateUpdateDownloader()
$Downloader.Updates = $SearchResult
$Downloader.Download()$Installer = New-Object -ComObject Microsoft.Update.Installer
$InstallCollection = New-Object -ComObject Microsoft.Update.UpdateColl
$SearchResult | ForEach-Object -Process { $InstallCollection.Add($_) | Out-Null }
$Installer.Updates = $InstallCollection
$Installer.Install() -
Great to see your byline on CSO!
-
Thank you Susan for the info. Followed the steps and got results. Will play around some more with your solution and see how it handles updates hidden with wushowhide and various delay settings within windows settings.
So far seems to be the best solution apart from going back to v1709 and staying there forever. 🙂
Update:
The PS command ignores updates hidden by wushowhide and displays them in the screen output anyways. You will still need to hide any updates that you specifically do not wish to install via windows update. There are no available updates that are newer than 30 days so I can’t yet test to see if the PS command observes the days to ignore rule in settings – I suspect it doesn’t.
-
This reply was modified 3 months ago by dph853.
1 user thanked author for this post.
-
I was going to ask how this method interacts with wushowhide, the Updates History and other parts of Windows Update. In this thread I’m piecing together some answers.
-- rc primak
-
This reply was modified 3 months ago by
-
Windows 10 has built-in WMI provider to scan and install updates since ver 1607
but they keep changing its properties and methods, and sadly it’s basic and limitedin latest ver 1809, one can scan for updates like this in powershell:
$ctr = "IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1"
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperations -ClientOnly
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria=$ctr}
$result.Updates
this will return list of available updates with their UpdateID for each, which is helpfull to install specific update alone
e.g.
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria="UpdateID='2b270fd4-8f8b-4d4f-ba85-17dace669c55'"}
Invoke-CimMethod -InputObject $ci -MethodName InstallUpdates -Arguments @{Updates=$result.Updates}
you can also choose to only download the update for now
Invoke-CimMethod -InputObject $ci -MethodName InstallUpdates -Arguments @{Updates=$result.Updates;DownloadOnly=$true}
unfortunately, the scan this way isn’t reflected in Settings page
and the installed updates will not be listed in Update History-
This reply was modified 3 months ago by abbodi86.
-
This reply was modified 3 months ago by
-
Was unable to sign up for CSO.
My Firefox has NoScript and other security. What must I allow to sign up?-
During the sign-up, the site is using trackers. You must turn off all ad blockers, all script blockers and all third-party tracker blockers. For many of us, this is too much of a privacy intrusion to tolerate. This is why I also don’t go to restricted areas of InfoWorld anymore. Too bad this resource and several others Susan references frequently can’t be posted at less intrusive sites. But everybody has to make a living.
-- rc primak
-
anonymousrc primak (and Susan) – thanks.
Shame that this CSO website is too difficult to use.
-
-
-
AuthorPosts
Comments are closed.
-
-
It's easy to post questions about Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced.

Plus Membership
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments. Click here for details and to sign up.
Search The Lounge
Recent Replies
-
OscarCP on Verizon FIOS upload speed55 minutes ago
-
Morty on Woody’s Windows Watch: Dispatches from the browser-war’s front lines1 hour, 57 minutes ago
-
Ascaris on Woody’s Windows Watch: Dispatches from the browser-war’s front lines2 hours, 58 minutes ago
-
Peter Haug on Woody’s Windows Watch: Dispatches from the browser-war’s front lines3 hours, 20 minutes ago
-
PerthMike on Server 2016 LTSC patches take for-e-ver. There are numerous reasons why – and not much you can do about it3 hours, 52 minutes ago
-
Bluetrix on Anomalous, buggy behavior on AskWoody4 hours, 12 minutes ago
-
PKCano on Win10.1809 repair / in-place upgrade failure4 hours, 13 minutes ago
-
Ascaris on LangList: Should you trust a hard drive after a major error?5 hours, 4 minutes ago
-
OscarCP on Woody’s Windows Watch: Dispatches from the browser-war’s front lines5 hours, 25 minutes ago
-
OscarCP on Tell me the truth – Which is better, Chrome or Firefox?5 hours, 35 minutes ago
-
OscarCP on Cimpanu: The US Govt Accountability Office recommends the US adopt GDPR-like privacy legislation5 hours, 53 minutes ago
-
OscarCP on How many Internet domains own MS, Google, Apple, Amazon? Try tens of millions6 hours, 5 minutes ago
-
deuce120 on LangList: Should you trust a hard drive after a major error?6 hours, 11 minutes ago
-
Woody Lounger on This is a test topic from a Lounger6 hours, 13 minutes ago
-
woody on Anomalous, buggy behavior on AskWoody6 hours, 22 minutes ago
-
mn– on LangList: Should you trust a hard drive after a major error?6 hours, 23 minutes ago
-
deuce120 on Woody’s Windows Watch: Dispatches from the browser-war’s front lines6 hours, 24 minutes ago
-
Sueska on Woody’s Windows Watch: Dispatches from the browser-war’s front lines6 hours, 25 minutes ago
-
woody on Anomalous, buggy behavior on AskWoody6 hours, 38 minutes ago
-
Mele20 on Cimpanu: The US Govt Accountability Office recommends the US adopt GDPR-like privacy legislation6 hours, 38 minutes ago
Recent Topics
-
Edge is NOT just Win 10
2 hours, 20 minutes ago
-
Verizon FIOS upload speed
55 minutes ago
-
Win10.1809 repair / in-place upgrade failure
4 hours, 13 minutes ago
-
Unable to run a command in Linux Mint
4 hours, 42 minutes ago
-
Extra system files?
8 hours, 17 minutes ago
-
Server 2016 LTSC patches take for-e-ver. There are numerous reasons why – and not much you can do about it
3 hours, 52 minutes ago
-
Whatever happened to Opera?
7 hours, 56 minutes ago
-
win 10 backup failure 0x800700E1
7 hours, 46 minutes ago
-
Win 7 to Win 10: 1803 or 1809 or 1903?
9 hours, 58 minutes ago
-
Windows 8.1 Post Patch Maintenance
14 hours, 58 minutes ago
Search for Topics
Recent blog posts
- Server 2016 LTSC patches take for-e-ver. There are numerous reasons why – and not much you can do about it
- Woody’s Windows Watch: Dispatches from the browser-war’s front lines
- LangList: Should you trust a hard drive after a major error?
- Patch Watch: February Patch Tuesday and yet more problems with the new Japanese calendar
- Deanna’s Freeware Spotlight: MultiPack Visual C+ Installer