Quantcast
Channel: foreach | Operating systems, scripting, PowerShell and security | jesusninoc.com
Viewing all articles
Browse latest Browse all 409

Searching the Registry: IP addresses

$
0
0

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.


Viewing all articles
Browse latest Browse all 409

Trending Articles