Microsoft Teams Machine-Wide Installer will not run properly from a script
I've tried pushing it by script and via Managed Install and no matter what I try it looks like it runs but fails. I can go to the KBot directory and run the exact same command and it runs perfectly. I tried running via a .bat file in the scripting and that also fails but if I run that exact same .bat file from the KBot directory it installs fine. What am I missing.
To use the system wide installer make sure you download the msi and install on you test box with an agent install so you get the software name in you software inventory. Then upload the msi file to server.
Then use the following commands to install:
via Kscript or Manage Install
msiexec.exe /i Teams_windows_x64.msi ALLUSERS=1 OPTIONS="noAutoStart=true" /qn /norestart
If you're installing this as part of Office 365 (or rather as an addition to Office 365 already being installed), you're best bet is to use the Office Deployment Tool (ODT) with the Office Customication Tool (OCT) to make an xml file that installs it and just push the xml and a batch file to run it. You can hard code the xml file to look to a previous K1000 distro package (the one that installed O365 apps) then just say add teams in the xml (basically in the application picker in the OCT, you add everything that's already there AND teams) and run the ODT setup.exe /configure <xml>. I can upload a sample batch/xml if needed. Only thing I'm having issue with is finding a way to get a custom inventory rule to realize it's installed because it lives in the users appdata\local\microsoft\teams folder.