garytown
garytown copied to clipboard
HPIA-PR-Detect.ps1 - $HPIAInstallPath Parameter
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.
Thanks, I'll take a look soon. Appreciate your testing.