Posted on 08-31-2023 02:13 AM
Hi,
We would like to get MS Teams to open on startup, i read a post where it suggested to add the Microsoft Teams.app as a login item however that didn't work.
I also see a plist somewhere that had some settings but i couldn't work out how to replicate this in xcode and it wouldn't let me save the contents to a text file and change the extension to .plist.
I know there is a tick box within the app to "Auto-Start Application" but we want to enable this for all users by default.
Any ideas on the easiest way to achieve this?
TIA
Posted on 08-31-2023 04:42 AM
We have a simple policy that runs the following command:
if pgrep "Microsoft Teams" > /dev/null; then echo 0; else open -a "Microsoft Teams"; fi
Posted on 08-31-2023 05:47 AM
Something like this maybe? Haven't tested, but let me know if you do.