Microsoft Teams on Start Up

New Contributor III


We would like to get MS Teams to open on startup, i read a post where it suggested to add the Microsoft 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? 





Valued Contributor II

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

Valued Contributor II

Something like this maybe? Haven't tested, but let me know if you do.


Screenshot 2023-08-31 at 8.46.00 AM.png