I recently had to prove out something like this. What I ended up doing was using a PowerShell script to watch the specified folder, then when anything changed it sent the updated file to the relevant endpoints. In a bit more detail:
- Watch the designated folder using System.IO.FileSystemWatcher. The subfolders in this folder are named the same as the location number of the retail store they represent.
- Calculate a checksum of the modified file.
- Run a BigFix query via the REST API to get the ids of the endpoints at this location.
- Create an xml object for the action, using the ids in the Target to make it a mailbox action.
- Make the action relevant to endpoints that are missing this file or have a version of the file that doesn’t match the new checksum.
- Submit the action to the specified endpoints by posting the xml object to the REST API.