title: How to delete REG_DWORD registry value where registry value like '*String*' using PowerShell?
body: <p>PowerShell is presenting registry values (and their registry data) as an array in <code>$\_.Property</code> in their parent registry key. How do I select and delete only the registry values where the value is like <code>\*String\*</code> ?</p>
  
  <p>I have tried searching high and low on StackOverflow and on Google trying many combinations that involve <code>Get-Item</code>, <code>Get-ItemProperty</code>, <code>Get-ChildItem</code>, <code>Select-Object</code> (including <code>-ExpandProperty</code> parameter), and <code>Where-Object</code> to select the registry values that I want (prior to moving on to incorporating deletion). I am now at a point where I am entirely clueless and unable to figure out how to simply find registry values like <code>\*Text\*</code> existing at a particular registry key and delete them. Something so simple seems so difficult! I do not know how to work with data in arrays!</p>
  
  <pre><code>Get-Item -Path HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs
  </code></pre>
  
  <p>Every registry value is being listed as part of an array under <code>$\_.Property</code> for registry key <code>HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDLLs</code>. I was expecting results where I could do something roughly like <code>$\_.RegistryValue -Like '\*Text\*' | Remove-Item</code> to delete the registry values matching <code>\*Text\*</code>.</p>
  
  <p>For clarification to ensure correct technical usage of certain vocabulary, a "registry key" appears as a folder in regedit.exe.</p>
  
  <p>A "registry value" is an entry of any type such as <code>REG\_SZ</code>, <code>REG\_DWORD</code>, <code>REG\_MZ</code>, and so on. A registry value contains "registry data", and depending on the registry type, it may be a string, an 32-bit value (sometimes expressed as either 1, 0, or 0x000000, 0x000001).</p>
  
  <p>We often refer to "registry values" as 'registry keys' (which is incorrect technical usage) and the "registry data" as 'registry values' (also incorrect technical usage), and "registry keys" as folders/location/"this place in the registry".</p>