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.
Answers (2)
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.
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
On the Scripted install the bat is C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\319\Teams_windows_x64.msi - rlbass1 4 years ago
Chuck,
I posted some more info in the Application Packaging channel in Slack, not sure whether you want me to post it here (it's a bit long-winded) or whether you can just see it there. - ajones88 4 years ago
Additionally, when installing from the system account it doesn't seem to create an entry in Programs and Features, but does appear to function (Installs teams for users on login).
The OP's edit in this post highlights the issue with the uninstaller. https://www.reddit.com/r/SCCM/comments/bip1ue/ms_teams_msi_cant_be_uninstalled/ - ajones88 4 years ago
ALLUSERS=1 OPTIONS="noAutoStart=true" /qn /norestart - ggibson 4 years ago