Search registry in Powershell for specific keys and values within those keys
<p>I'm fairly close to a solution, but I just can't get there.  What I'm trying to do is search for installed MS Office updates.  The best way I've found is to search the <code>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall</code> key.</p>

<p>What I then want to do is only look at sub-keys like <code>*{90140000-001*</code> (which indicates Office) and the search each found sub-key's DisplayName property for "(KB*" - which will indicate it is an update to Office rather than a component.</p>

<p>What I have so far is this:</p>

<pre><code>$ErrorActionPreference = "SilentlyContinue"
Get-ChildItem "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" -Recurse | Where-Object{$_ -like "*{90140000-001*"} | foreach {
Get-ItemProperty $_.DisplayName}
</code></pre>

<p>But it produces blank output.</p>

<p>Is anyone able to please help me finish this off?</p>