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.

6 Comments   [ + ] Show comments
  • Can you please share your command line and batch file? - chucksteel 1 year ago
  • On the Managed Install it's msiexec.exe /i "Teams_windows_x64.msi"
    On the Scripted install the bat is C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\319\Teams_windows_x64.msi - rlbass1 1 year ago
  • Just wanted to mention I am having basically the same issue, I was just about to make a post when I saw this.

    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 1 year ago
  • As I said the command line and .bat file absolutely work when run locally but fail when pushed by Kace. - rlbass1 1 year ago
    • Same results here, I am testing the command while run in the SYSTEM context right now, since that is how KACE runs them. - ajones88 1 year ago
  • I think I have it working now, it looks like there can be issues with the uninstall process, which is leaving some registry keys behind.

    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 1 year ago
  • add the following options to your install line
    ALLUSERS=1 OPTIONS="noAutoStart=true" /qn /norestart - ggibson 1 year ago

Answers (2)

Posted by: ggibson 1 year ago
White Belt

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

Posted by: jedinger 1 year ago
White Belt

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ