Hi!
I have this EA but i am sure that it is not pulling back the data for all of the machines that we have.
#!/bin/sh
Application="/Applications/PCClient.app"
if [ -e "$Application" ]; then
lastOpen=`mdls "$Application" -name kMDItemLastUsedDate | awk '{print $3,$4}'`
echo "<result>$lastOpen</result>"
fi
I have around 50 machines that have not reported any date, yet when I login to the machines remotely the application is running.
I know that the EA is only updated when the inventory is updated, but a machine that updated at 7 am this morning had the EA as empty.. I logged into the machine this afternoon, the application was running as I would have hoped.
I created a policy that runs once, to force an inventory update, and once this had run the EA was populated.. What am I missing here?
