File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/framework/migration-guide Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,9 @@ ForEach-Object {
266
266
$parentName = $_.PSChildName
267
267
Get-ChildItem -LiteralPath $_.PSPath |
268
268
Where-Object {
269
- if ($_.Property -contains 'Version') { $name = Get-ItemPropertyValue -Path $_.PSPath -Name Version }
270
- if ($name -and ($_.Property -contains 'SP')) { $sp = Get-ItemPropertyValue -Path $_.PSPath -Name SP }
271
- if ($_.Property -contains 'Install') { $install = Get-ItemPropertyValue -Path $_.PSPath -Name Install }
269
+ if ($_.Property -contains 'Version') { $name = $(( Get-ItemProperty -Path "Registry::$_"). Version) }
270
+ if ($name -and ($_.Property -contains 'SP')) { $sp = $(( Get-ItemProperty -Path "Registry::$_").SP) }
271
+ if ($_.Property -contains 'Install') { $install = $(( Get-ItemProperty -Path "Registry::$_"). Install) }
272
272
if (-not $install) {
273
273
Write-Host -Object " $($parentName) $($name)"
274
274
}
You can’t perform that action at this time.
0 commit comments