Inventory collection hidden folder

dmccluskey
Contributor

Hello

Does any know how to Inventory collection a hidden folder in applications. 

Bomgar creates a .com folder that the user cant see.

Thanks

 

Screen Shot 2022-11-04 at 1.28.42 PM.pngScreen Shot 2022-11-04 at 1.30.11 PM.png

2 REPLIES 2

karthikeyan_mac
Valued Contributor

@dmccluskey You can use the Extension Attribute to check if folder exists. I don't think Jamf default inventory has hidden folders 

#!/bin/bash

ls -a /Applications | grep -i .com1.bomgar.scc   >> /dev/null

if [ $? == 0 ]; then
  result=Yes
else
  result=No
fi
echo "<result>$result</result>"

 Thanks

dmccluskey
Contributor

perfect 

 

thanks