Skip to content

Instantly share code, notes, and snippets.

@rrodrigueznt
Last active October 21, 2019 11:42
Show Gist options
  • Save rrodrigueznt/cf2b91cc2774a0f7b6b4542075a24e48 to your computer and use it in GitHub Desktop.
Save rrodrigueznt/cf2b91cc2774a0f7b6b4542075a24e48 to your computer and use it in GitHub Desktop.
#
Get-ChildItem -Path $path -Recurse -Filter "*SOMM*" | select FullName
Get-ChildItem -Path $path -Recurse -Filter "*survey*" | select FullName | Out-Gridview
#
write-host "Possible IP addresses:`n"
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | foreach {
$CurrentKey = (Get-ItemProperty -Path $_.PsPath)
select-string "\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b" -input $CurrentKey -AllMatches | foreach {($_.matches)|select-object Value}
}
write-host "`nPossible URLs:`n"
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | foreach {
$CurrentKey = (Get-ItemProperty -Path $_.PsPath)
select-string "\b(ht|f)tp(s?)[^ ]*\.[^ ]*(\/[^ ]*)*\b" -input $CurrentKey -AllMatches | foreach {($_.matches)|select-object Value}
}
write-host "Possible IP addresses:`n"
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | foreach {
$CurrentKey = (Get-ItemProperty -Path $_.PsPath)
select-string "IGFAEap01" -input $CurrentKey -AllMatches | foreach {($_.matches)|select-object Value}
}
Get-ChildItem HKCU:\ -rec -ea SilentlyContinue | foreach {
>> $CurrentKey = (Get-ItemProperty -Path $_.PsPath)
>> if ($CurrentKey -match "IGFAEap") {
>> $CurrentKey
>> }
>> }
#
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\SettingSync\Wireless\DeletedProfiles" -Name "IGFAEap01_5G 2"
#
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts" -Name "\\http://fpaxp2.inv.usc.es:631\laser6"
#
HKEY_CURRENT_USER\Printers\ConvertUserDevModesCount
#
Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Printers\ConvertUserDevModesCount
#
dir | where {$_.PsIsContainer} | Select-Object Name
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment