Search Registry


posted by Tobias Weltner
10-31-2008

Downloads: 599
File size: 206 B
Views: 4,724

Embed
Search Registry
  1. $searchText = "Testing" 
  2.  
  3. dir HKCU:\ -rec -ea SilentlyContinue |   
  4.        ForEach-Object {   
  5.       if((get-itemproperty -Path $_.PsPath) -match $searchText)  
  6.       {   
  7.          $_.PsPath  
  8.       }   
  9.    
Filed under: ,

searches registry recursively for all keys matching a given keyword

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.