-, . Get-Item:
$item = Get-Item -Path "Registry::HKEY_CURRENT_USER\Software\NuGet"
foreach ($prop in $item.Property) {
if($item.GetValue($prop) -match '0') { "Match found in key $($item.PSPath) , value $($prop)" }
}
Get-ItemProperty:
$item = Get-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Software\NuGet"
foreach ($prop in $item.psobject.Properties) {
if($prop.Value -match '0') { "Match found in key $($item.PSPath) , value $($prop.Name)" }
}
-, Get-ItemProperty Where-Object, ex:
Get-ItemProperty -Path "Registry::HKEY_CURRENT_USER\Software\NuGet" | Where-Object { $_.IncludePrerelease -match '0' }