Find all 32-bit applications on Mac OSX devices
With the recent arrival of Catalina, and the fact it doesn't support 32-bit applications, I was wondering if anyone had a method to script or report all Macs that have 32-bit applications installed via Kace? Thanks for any suggestions.
0 Comments [ + ] Show comments
Please log in to answer
Posted by: KevinG 3 years ago
You can put following into a script or maybe a custom inventory rule.
If using a script you need to save the output to file and upload to the appliance.
system_profiler SPApplicationsDataType | grep -B 6 -A 2 "64-Bit (Intel): No"
Thanks - This sounds like a good fix for running on individual Macs, but it might not be viable for running on all Macs at once (as the output file name in the script would be the same for all Macs, and I wouldn't be able to tell which file came from which mac). I'll mess around with it when I get a chance, thanks again. - seanboy 3 years ago
If you pull in the results using a custom inventory field you will be able to create a report showing the result for each machine. The following custom inventory rule should work:
ShellCommandTextReturn(system_profiler SPApplicationsDataType | grep -B 6 -A 2 "64-Bit (Intel): No") - chucksteel 3 years ago
For others implementing this, the raw output from the command is a bit much. I piped the output through another grep to just get the path of the apps:
ShellCommandTextReturn(system_profiler SPApplicationsDataType | grep -B 6 -A 2 "64-Bit (Intel): No" | grep "Location:") - chucksteel 3 years ago
This is awesome, and makes the results a lot less painful to review! Thanks :) - seanboy 3 years ago