garytown icon indicating copy to clipboard operation
garytown copied to clipboard

HPIA-PR-Detect.ps1 - $HPIAInstallPath Parameter

Open Brad-Dale opened this issue 11 months ago • 1 comments

Function Install-HPIA{
[CmdletBinding()]
    Param (
        [Parameter(Mandatory=$false)]
        $HPIAInstallPath = "$env:ProgramFiles\HP\HPIA\bin"
        )

Error when running: Install-HPIA : Cannot bind argument to parameter 'HPIAInstallPath' because it is null.

Manually setting the variable works. I moved this out of the function to be with the other variables line 22 and it works.

Brad-Dale avatar Mar 26 '24 01:03 Brad-Dale

Thanks, I'll take a look soon. Appreciate your testing.

gwblok avatar Mar 26 '24 01:03 gwblok