02/06/2020, 3:06 PM
is it possible to read the contents of a file with osquery. context is we are currently dumping mdm enrolment date as a int value into a file. i just want to be able to read that value within the file


02/06/2020, 3:17 PM
@darren If you can write the value to a file that is formatted as a plist you can use vanilla osquery to retrieve the value.
3:18 PM
Otherwise, if you are using launcher, you can also read JSON files and could have chef output it that way.
3:21 PM
Likewise, if you are using launcher, you have access to the kolide_mdm_info table which will give you data about your enrolled mdms