Jtracy_ItPro

WebEx_Teams_x64-Install_AllUsers.ps1

Sep 18th, 2020 (edited)
209
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Install Webex Teams "All Users" SYSTEM install script
  2. # For the x64 MSI. I'm not aware of any x86 MSI.
  3. # The MSI installs for the current user by default. This script uses ALLUSERS=1 so it's for all users.
  4. # That is supported in Cisco docs.
  5. # - JT
  6.  
  7. $Transcript = $env:TEMP + "\WebEx_Teams-Install-Transcript.log"
  8.  
  9. Start-Transcript -Path $Transcript
  10.  
  11. #=-=-=-=-=-=-
  12.  
  13. $Installer = ".\WebexTeams.msi"
  14. $Installer = Get-Item -Path $Installer | Select-Object -ExpandProperty fullname
  15. $LogFile = $env:TEMP + "\WebEx_Teams-Install.log"
  16.  
  17. #=-=-=-=-=-=
  18.  
  19. ### INSTALL FOR ALL USERS THIS TIME. - JT
  20.  
  21. & MsiExec /i $Installer /q /norestart /log $LogFile ALLUSERS=1 | Wait-Process
  22.  
  23. #=-=-=-=-=-=
  24.  
  25. Stop-Transcript
  26.  
RAW Paste Data