AVD / Windows 365 - Step by Step - How to install Microsoft Teams via Intune/MEM

%3CLINGO-SUB%20id%3D%22lingo-sub-2682681%22%20slang%3D%22en-US%22%3EAVD%20%2F%20Windows%20365%20-%20Step%20by%20Step%20-%20How%20to%20install%20Microsoft%20Teams%20via%20Intune%2FMEM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2682681%22%20slang%3D%22en-US%22%3E%3CP%3ERecently%20Microsoft%20announced%20that%20the%20%22Windows%2010%20Enterprise%20(multi-session)%20with%20Microsoft%20365%20Apps%20for%20Enterprise%22%20now%20includes%20Teams%20with%20AVD%20media%20optimizations.%20This%20is%20really%20helpful%20and%20reduces%20image%20creation%20time%20for%20the%20AVD%20administrator.%20But%20what%20do%20you%20do%20if%20your%20organization%20requires%20a%20specific%20Office%20version%20and%20specific%20installation%20options%3F%20The%20result%20is%20a%20separate%20deployment%20of%20Office%20via%20Intune.%20Specifically%20for%20Azure%20Virtual%20Desktops%20and%20Windows%20365%20Cloud%20PC's%20fully%20managed%20with%20Intune%2C%20it's%20recommended%20to%20deploy%20Teams%20as%20a%20%22machine-installation%22%20and%20adding%20the%20VDI%2FAVD%20media%20optimizations.%20Full%20requirements%20are%20described%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fteams-on-avd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft%20Teams%20on%20Azure%20Virtual%20Desktop%20-%20Azure%20%7C%20Microsoft%20Docs%3C%2FA%3E.%20This%20arises%20the%20next%20question%2C%20how%20to%20deploy%20a%20single%20Teams%20installation%20via%20Intune%3F%20With%20the%20additional%20components%2C%20the%20best%20way%20forward%20is%20to%20create%20an%20Win32%20app.%20More%20information%20about%20Win32%20can%20be%20found%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fapps%2Fapps-win32-app-management%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWin32%20app%20management%20in%20Microsoft%20Intune%20%7C%20Microsoft%20Docs%3C%2FA%3E.%20The%20following%20step%20by%20step%20explains%20how%20to%20deploy%20Teams%20as%20a%20single%20%22machine%20based%22%20installation%20via%20Intune%20for%20AVD%20and%20Windows365%20Cloud%20PC's.%3CBR%20%2F%3E%3CBR%20%2F%3E1.)%20Create%20a%20security%20group%20where%20your%20AVD%2FWindows365%20virtual%20devices%20can%20be%20added%20(this%20can%20either%20be%20manually%20or%20dynamically%20based%20on%20a%20query%20rule%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E2.)%20Create%20a%20folder%20structure%20on%20your%20local%20pc%20as%20preparation%20for%20the%20Win32%20application%20packaging%3C%2FP%3E%3CP%3EI%20have%20used%3B%3CBR%20%2F%3EC%3A%5Cwin32%3CBR%20%2F%3EC%3A%5Cwin32%5Cinput%5Cteamsforavd%3CBR%20%2F%3EC%3A%5Cwin32%5Coutput%5Cteamsforavd%3CBR%20%2F%3E%3CBR%20%2F%3EDownload%20the%20Win32%20app%20packaging%20tool%20(%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMicrosoft-Win32-Content-Prep-Tool%2Farchive%2Frefs%2Fheads%2Fmaster.zip%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2FMicrosoft-Win32-Content-Prep-Tool%2Farchive%2Frefs%2Fheads%2Fmaster.zip%3C%2FA%3E)%2C%20extract%20the%20zip%20file%20to%20C%3A%5Cwin32%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E3.)%20Download%20all%20required%20files%20and%20save%20them%20to%20C%3A%5Cwin32%5Cinput%5Cteamsforavd%3CBR%20%2F%3E-%20Teams%2064-bit%20msi%20installer%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fdownloads%2Fdesktopurl%3Fenv%3Dproduction%26amp%3Bplat%3Dwindows%26amp%3Barch%3Dx64%26amp%3BmanagedInstaller%3Dtrue%26amp%3Bdownload%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fteams.microsoft.com%2Fdownloads%2Fdesktopurl%3Fenv%3Dproduction%26amp%3Bplat%3Dwindows%26amp%3Barch%3Dx64%26amp%3BmanagedInstaller%3Dtrue%26amp%3Bdownload%3Dtrue%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E-%20Remote%20Desktop%20WebRTC%20Redirector%20Service%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWFYsj%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fquery.prod.cms.rt.microsoft.com%2Fcms%2Fapi%2Fam%2Fbinary%2FRWFYsj%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E-%20Visual%20C%2B%2B%20installer%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvs%2F16%2Frelease%2Fvc_redist.x64.exe%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fvs%2F16%2Frelease%2Fvc_redist.x64.exe%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E4.)%20Create%20an%20install.cmd%20file%20in%20C%3A%5Cwin32%5Cinput%5Cteamsforavd%20and%20edit%20the%20file%20with%20notepad.%20Add%20the%20following%20text%20and%20save%20the%20install.cmd%20file.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3Ereg.exe%20add%20%22HKEY_LOCAL_MACHINE%5CSoftware%5CMicrosoft%5CTeams%22%20%2Fv%20IsWVDEnvironment%20%2Ft%20REG_DWORD%20%2Fd%201%20%2Ff%20%2Freg%3A64%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3ETIMEOUT%20%2FT%205%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3Emsiexec%20%2Fi%20MsRdcWebRTCSvc_HostSetup_2106.14001_x64.msi%20%2Fqn%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3ETIMEOUT%20%2FT%2060%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3EVC_redist.x64.exe%20%2Fquiet%20%2Fnorestart%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3ETIMEOUT%20%2FT%20180%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3Emsiexec%20%2Fi%20Teams_windows_x64.msi%20ALLUSER%3D1%20%2Fqn%20%2Fnorestart%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E5.)%20Open%20a%20command%20prompt%20(CMD)%20as%20an%20administrator%20and%20enter%20the%20following%20command%3A%20cd%20c%3A%5Cwin32%3CBR%20%2F%3EExecute%20the%20file%3A%26nbsp%3BIntuneWinAppUtil.exe%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20will%20be%20asked%20to%20provide%20the%20source%20location%2C%20type%3A%20c%3A%5Cwin32%5Cinput%5Cteamsforavd%3CBR%20%2F%3EYou%20will%20be%20asked%20to%20provide%20the%20install%2Fsetup%20file%2C%20type%3A%20install.cmd%3CBR%20%2F%3EYou%20will%20be%20asked%20to%20provide%20a%20destination%20location%2C%20type%3A%20c%3A%5Cwin32%5Coutput%5Cteamsforavd%3CBR%20%2F%3EYou%20will%20be%20asked%20to%20generate%20a%20catalog%20file%2C%20type%3A%20N%20for%20No%20and%20press%20enter%20to%20start%20the%20Win32%20app%20packaging%20process.%3CBR%20%2F%3E%3CBR%20%2F%3EA%20file%20called%20%22install.intunewin%22%20will%20be%20created%20in%20c%3A%5Cwin32%5Coutput%5Cteamsforavd%3CBR%20%2F%3E%3CBR%20%2F%3E6.)%20Go%20to%20the%20Intune%20management%20portal%20%3CA%20href%3D%22https%3A%2F%2Fendpoint.microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fendpoint.microsoft.com%3C%2FA%3E%26nbsp%3B%2C%20click%20on%20Apps%2C%20click%20on%20All%20Apps%2C%20click%20on%20the%20%2BAdd%20button.%20Select%20app%20type%20%26gt%3B%20Windows%20app%20(Win32)%2C%20press%20the%20select%20button.%3CBR%20%2F%3EClick%20on%20%22select%20app%20package%20file%22%2C%20browse%20to%20c%3A%5Cwin32%5Coutput%5Cteamsforavd%20and%20double%20click%20the%20%22install.intunewin%22%26nbsp%3B%20file.%3CBR%20%2F%3EProvide%20a%20Name%2C%20Description%2C%20Publisher%20which%20are%20required%20to%20fill%20in%2C%20and%20press%20Next.%3CBR%20%2F%3EIn%20the%20%22Install%20command%22%20field%3A%20install.cmd%3CBR%20%2F%3EIn%20the%20%22Uninstall%20command%22%20field%3A%20msiexec%20%2Fx%26nbsp%3B%7B731F6BAA-A986-45A4-8936-7C3AAAAA760B%7D%3CBR%20%2F%3EPress%20Next.%3CBR%20%2F%3ESelect%2064%20bit%20as%20operating%20system%20architecture%2C%20select%20a%20Windows%2010%20build%20version%20and%20press%20Next.%3CBR%20%2F%3ESelect%20a%20%22Manually%20configure%20detection%20rules%22%20%2C%20click%20the%20%2BAdd%20button%2C%20select%20Rule%20Type%20%22MSI%22%20%2C%20provide%20the%20product%20code%20incl%20brackets%26nbsp%3B%7B731F6BAA-A986-45A4-8936-7C3AAAAA760B%7D%20and%20press%20OK.%20Press%20Next.%20Press%20Next%20until%20you%20reach%20the%20%227%20Assignments%22%20page.%20Add%20your%20security%20group%20with%20%3CU%3E%3CSTRONG%3Edevice%3C%2FSTRONG%3E%3C%2FU%3E%20members.%20Press%20Next%20again.%20On%20the%20final%20page%20press%20the%20Create%20button.%3CBR%20%2F%3E%3CBR%20%2F%3EYour%20Teams%20for%20AVD%20application%20will%20now%20be%20created.%20Don't%20close%20the%20screen%20as%20this%20might%20break%20the%20upload.%20This%20process%20can%20take%20a%20few%20minutes%20depending%20on%20your%20internet%20connection.%3CBR%20%2F%3E%3CBR%20%2F%3E7.)%20Once%20the%20application%20is%20uploaded%2C%20sync%20your%20device.%20A%20few%20minutes%20later%20the%20deployment%20will%20start%20where%20the%20device%20will%20start%20downloading%20the%20installation%20files.%20After%20the%20download%2C%20the%20installation%20will%20take%20approximately%2010%20minutes%20in%20total.%3CBR%20%2F%3E%3CBR%20%2F%3EIntune%20will%20report%20the%20installation%20as%20successful.%20Good%20luck!%3CBR%20%2F%3E%3CBR%20%2F%3EKind%20regards%2C%3CBR%20%2F%3E%3CBR%20%2F%3ERaymond%20van%20Garderen%3CBR%20%2F%3EConsultant%26nbsp%3B%40%20SCCT%20Netherlands%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Recently Microsoft announced that the "Windows 10 Enterprise (multi-session) with Microsoft 365 Apps for Enterprise" now includes Teams with AVD media optimizations. This is really helpful and reduces image creation time for the AVD administrator. But what do you do if your organization requires a specific Office version and specific installation options? The result is a separate deployment of Office via Intune. Specifically for Azure Virtual Desktops and Windows 365 Cloud PC's fully managed with Intune, it's recommended to deploy Teams as a "machine-installation" and adding the VDI/AVD media optimizations. Full requirements are described here Microsoft Teams on Azure Virtual Desktop - Azure | Microsoft Docs. This arises the next question, how to deploy a single Teams installation via Intune? With the additional components, the best way forward is to create an Win32 app. More information about Win32 can be found here Win32 app management in Microsoft Intune | Microsoft Docs. The following step by step explains how to deploy Teams as a single "machine based" installation via Intune for AVD and Windows365 Cloud PC's.

1.) Create a security group where your AVD/Windows365 virtual devices can be added (this can either be manually or dynamically based on a query rule


2.) Create a folder structure on your local pc as preparation for the Win32 application packaging

I have used;
C:\win32
C:\win32\input\teamsforavd
C:\win32\output\teamsforavd

Download the Win32 app packaging tool (https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool/archive/refs/heads/master.zip), extract the zip file to C:\win32


3.) Download all required files and save them to C:\win32\input\teamsforavd
- Teams 64-bit msi installer: https://teams.microsoft.com/downloads/desktopurl?env=production&plat=windows&arch=x64&managedInstall... 
- Remote Desktop WebRTC Redirector Service https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RWFYsj 
- Visual C++ installer https://aka.ms/vs/16/release/vc_redist.x64.exe 

4.) Create an install.cmd file in C:\win32\input\teamsforavd and edit the file with notepad. Add the following text and save the install.cmd file.

reg.exe add "HKEY_LOCAL_MACHINE\Software\Microsoft\Teams" /v IsWVDEnvironment /t REG_DWORD /d 1 /f /reg:64
TIMEOUT /T 5
msiexec /i MsRdcWebRTCSvc_HostSetup_2106.14001_x64.msi /qn
TIMEOUT /T 60
VC_redist.x64.exe /quiet /norestart
TIMEOUT /T 180
msiexec /i Teams_windows_x64.msi ALLUSER=1 /qn /norestart


5.) Open a command prompt (CMD) as an administrator and enter the following command: cd c:\win32
Execute the file: IntuneWinAppUtil.exe

You will be asked to provide the source location, type: c:\win32\input\teamsforavd
You will be asked to provide the install/setup file, type: install.cmd
You will be asked to provide a destination location, type: c:\win32\output\teamsforavd
You will be asked to generate a catalog file, type: N for No and press enter to start the Win32 app packaging process.

A file called "install.intunewin" will be created in c:\win32\output\teamsforavd

6.) Go to the Intune management portal https://endpoint.microsoft.com , click on Apps, click on All Apps, click on the +Add button. Select app type > Windows app (Win32), press the select button.
Click on "select app package file", browse to c:\win32\output\teamsforavd and double click the "install.intunewin"  file.
Provide a Name, Description, Publisher which are required to fill in, and press Next.
In the "Install command" field: install.cmd
In the "Uninstall command" field: msiexec /x {731F6BAA-A986-45A4-8936-7C3AAAAA760B}
Press Next.
Select 64 bit as operating system architecture, select a Windows 10 build version and press Next.
Select a "Manually configure detection rules" , click the +Add button, select Rule Type "MSI" , provide the product code incl brackets {731F6BAA-A986-45A4-8936-7C3AAAAA760B} and press OK. Press Next. Press Next until you reach the "7 Assignments" page. Add your security group with device members. Press Next again. On the final page press the Create button.

Your Teams for AVD application will now be created. Don't close the screen as this might break the upload. This process can take a few minutes depending on your internet connection.

7.) Once the application is uploaded, sync your device. A few minutes later the deployment will start where the device will start downloading the installation files. After the download, the installation will take approximately 10 minutes in total.

Intune will report the installation as successful. Good luck!

Kind regards,

Raymond van Garderen
Consultant @ SCCT Netherlands
















0 Replies