Policy Trigger based on Application launch

josaxo
New Contributor

Hi All - I'm looking for a creative way to trigger a policy after a user has opened an application. More specifically, I need to run a script that configures a few settings in Lync, but the entries are dependent on the users email address, so the script cannot run until the Lync plist is populated with the user specific keys. Any ideas?

Thanks!

2 REPLIES 2

yr_joelbruner
New Contributor III

Write an Extension Attribute to detect for the presence (or specific contents) of the plist file, although this might be tricky since it is in ~/Library/Preferences, but if you only have one user per machine, no biggie, have it return a string true/false or a integer 0 or 1, whichever you prefer. Then build a Smart Group that uses the EA, to include folks who have the plist. Then have the policy scope to the Smart Group. Then have the policy run Once Per Computer (but don't make the trigger Any, recently had an issue where Any trigger was running Once Per MULTIPLE times a day).

Although if you wrote the EA to test for specific keys that don't exist until the script runs, then once the script runs and inventory is taken they would be out of the Smart Group and the policy could be set to Ongoing rather than run once?

Just a sketch :)

donmontalvo
Esteemed Contributor III

We very recently mass deployed Lync to 1,000+ users. We used William Smith's excellent process, which includes setting the SIP string, etc.

http://www.officeformachelp.com/lync/administration/setup-script/

Not sure about the HEX_KEY plist settings wonkiness that someone at Microsoft whipped up. Probably someone with "Manager" in their title, following Adobe's flawed "One code set across platforms philosophy"...a former Adobe employee perhaps? :)

--
https://donmontalvo.com