Loading…

EXTEND YOUR IT SERVICES

Make use of Extended IT to bolster your IT Support Offering
Extend your IT

Installing Microsoft Teams using Intune

Teams is one of the Microsoft applications that isn’t easily deploy-able using InTune, it’s not one of the default supported applications and there is no MSI for it. So how do we install teams using only the .exe and a method supported by InTune? PowerShell! We can deploy a PowerShell script to install teams through InTune.

We we will need to complete the following steps through PowerShell;

 

  1. Check if Teams is already installed
  2. Check whether we need the 64 or 32 bit installer
  3. Download the installer
  4. Run the installer

This is the script we will need to use,

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$username = $ENV:UserProfile
if (Test-Path -Path $username\AppData\Local\Microsoft\Teams\Current\Teams.exe){
Write-Host "Teams already installed"
} 
else {
if ([System.IntPtr]::Size -eq 4) {
Write-Host "System is 32-bit"
Invoke-WebRequest -Uri "https://statics.teams.microsoft.com/production-windows/1.1.00.5855/Teams_windows.exe" -OutFile "$username\Downloads\Teams_Windows.exe"
$teams = "$username\Downloads\Teams_Windows.exe"
} else { 
Invoke-WebRequest -Uri "https://statics.teams.microsoft.com/production-windows-x64/1.1.00.5855/Teams_windows_x64.exe" -OutFile "$username\Downloads\Teams_Windows.exe"
$teams = "$username\Downloads\Teams_Windows_x64.exe"
Write-Host "System is 64-bit"
}
#Install
& $teams -s
}

All you need to do is take this script, upload it to the PowerShell scripts section under Device Configuration, run it in the users context and the assign users / groups to it.

Leave a Reply