/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Microsoft Teams Machine-Wide Installer will not run properly from a script

01/29/2020 154 views

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

Comments

  • Can you please share your command line and batch file?
  • 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
  • Just wanted to mention I am having basically the same issue, I was just about to make a post when I saw this.

    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.
  • As I said the command line and .bat file absolutely work when run locally but fail when pushed by Kace.
    • Same results here, I am testing the command while run in the SYSTEM context right now, since that is how KACE runs them.
  • 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/
  • add the following options to your install line
    ALLUSERS=1 OPTIONS="noAutoStart=true" /qn /norestart

All Answers

1

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


Answered 02/03/2020 by: ggibson
White Belt

Don't be a Stranger!

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

Sign up! or login

Share

 
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