Terminal command from Mosyle to retrieve both version and build
Posted: Mon Nov 13, 2023 6:21 pm
I have the following command that works (in Mosyle) to retrive the version of the client, but I would also like the build and I cannot figure out that last part.
mdls -name kMDItemVersion /Applications/OpenVPN\ Connect.app
So this for example produces kMDItemVersion - "3.4.4" , and I would like it to be: kMDItemVersion - "3.4.4" 4682
mdls -name kMDItemVersion /Applications/OpenVPN\ Connect.app
So this for example produces kMDItemVersion - "3.4.4" , and I would like it to be: kMDItemVersion - "3.4.4" 4682