Microsoft Teams on Start Up

infrase2020
New Contributor III

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

 

2 REPLIES 2

DBrowning
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

obi-k
Valued Contributor III

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

 

Screenshot 2023-08-31 at 8.46.00 AM.png