Write-Host “IP addresses:`n”
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | ForEach-Object {
Select-String “\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b” -input (Get-ItemProperty -Path $_.PsPath) -AllMatches | ForEach-Object {($_.matches)|Select-Object Value}
}
The post Searching the Registry: IP addresses appeared first on Scripting.