On two systems out of over 1800 that I’m updating Firefox on I’m getting an InvalidCastException on Get-ADTApplication -Name “Firefox”. I was able to remote into one of the systems and I get the error on any application I try to use (that I know is installed on the system). Any ideas why this is happening? The script is version 4.0.4 but it looks like it’s been happening since version 4.0.3.
On the two systems you get the error on, you could check for how many applications you have installed that has “Firefox” in the “Name”, sounds like you get something back that isn’t expected or can’t be handled by the function.
I found the issue thanks to some help from Dan and Edijs on the discord channel. I looks like a nbi installer put malformed info (a hex value) into the DWord for NoModify. Different programs but the same installed. It’s causing the function to blow up.
For posterity, this issue has been resolved via - Re-write `Get-ADTApplication` main loop to handle bad uninstall ent… · PSAppDeployToolkit/PSAppDeployToolkit@b19388e · GitHub and will be in the next patch release.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.