We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65aa10 commit bb32746Copy full SHA for bb32746
Public/SoftwareProduct.ps1
@@ -36,11 +36,9 @@ function SoftwareProduct {
36
[scriptblock]$Should
37
)
38
39
- $name = Split-Path -Path $Target -Leaf
40
-
41
$expression = {Get-ItemProperty -Path hklm:\\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -Match '$Target'}
42
43
- $params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression -FriendlyName $name @PSBoundParameters
+ $params = Get-PoshspecParam -TestName SoftwareProduct -TestExpression $expression @PSBoundParameters
44
45
Invoke-PoshspecExpression @params
46
}
poshspec.psd1
2 Bytes
0 commit comments