Remove-MSIApplications Exact parameter causing invalid msi command line syntax

I’m using the latest PSADT 3.6.4. Trying to remove two versions of Check Point VPN from our fleet.
One is called Check Point VPN and the other is called Check Point VPN-1 SecuRemote/SecureClient NGX R60 HFA3.
Check Point VPN needs to be uninstalled first and then Check Point VPN-1 SecuRemote/SecureClient NGX R60 HFA3.
Check Point VPN has has about 5 different MSI Product codes. Long story short; depending on which office the computer was in, they would get a custom Check Point VPN MSI install that was generated by the Check Point Firewall server, so using Remove-MSIApplications “Check Point VPN” -Exact $true would be ideal, the only problem is that it adds “True” to the msiexec uninstall command line which causes an msi invalid syntax error message to pop up.

Remove-MSIApplications “Check Point VPN” -Exact $true
Remove-MSIApplications “Check Point VPN-1” -Wildcard $true

Is there a work around for this?

Thanks,
Jerry

-Exact and -Wildcard are switch parameters. You are specifying these parameters as if they are Boolean parameters.

If you want to specify a switch parameter as true, you can do:

Remove-MSIApplications “Check Point VPN” -Exact
Remove-MSIApplications “Check Point VPN-1″ -Wildcard

or

Remove-MSIApplications “Check Point VPN” -Exact:$true
Remove-MSIApplications “Check Point VPN-1″ -Wildcard:$true

If you want to specify a switch parameter as false, you can either not specify it as false is the default or do:

Remove-MSIApplications “Check Point VPN” -Exact:$false
Remove-MSIApplications “Check Point VPN-1″ -Wildcard:$false

Awesome! Thanks.