Domain 3 β€” Module 6 of 7 86%
23 of 28 overall
Domain 3: Plan and Implement User Environments and Apps Free ⏱ ~15 min read

Microsoft 365, Teams and OneDrive on AVD

Running Microsoft 365 apps on multi-session AVD hosts requires shared computer activation, special installation modes, and media optimisation for Teams. Learn how to deploy M365 apps, configure OneDrive, optimise Teams, and handle browsers in AVD environments.

Microsoft 365 Apps on AVD β€” shared computer activation

Simple explanation

Think of shared computer activation as a gym membership card, not a personal home gym.

On your personal laptop, Microsoft 365 activates with your licence and stays activated. That is like having a home gym β€” it is always yours. On a shared AVD session host, 20 people use the same machine. You cannot β€œinstall” Office for each person permanently. Instead, each person swipes their gym membership card (licence) when they arrive. Office checks their card, activates for their session, and deactivates when they leave. The next person swipes their card and gets their own activation.

Deploying M365 Apps for shared activation

Install Microsoft 365 Apps using the Office Deployment Tool (ODT) with a configuration XML:

Key settings in the configuration:

SettingValueWhy
SharedComputerLicensing1Enables shared computer activation (mandatory for multi-session)
ChannelMonthlyEnterprise or CurrentUpdate channel β€” MonthlyEnterprise is recommended for AVD
ExcludeAppTeams, OneDrive, Access (optional)Exclude apps that are deployed separately or not needed
Display LevelNoneSilent installation for image builds

Install M365 Apps in the golden image, not per session host. When you update the image, all hosts get the new version.

Exam tip: SharedComputerLicensing is mandatory

If the exam asks about deploying Microsoft 365 Apps to multi-session hosts and SharedComputerLicensing is not mentioned in an answer, that answer is wrong. Without shared activation, only one user can activate Office on the machine β€” all other users get a β€œProduct Activation Failed” error.

Remember: single-session (personal) host pools do NOT need shared computer activation β€” the machine is dedicated to one user. Shared activation is only for multi-session / pooled scenarios.

OneDrive on multi-session AVD

OneDrive needs special handling on multi-session hosts because multiple users share the same machine.

Per-machine installation (ALLUSERS mode)

OneDrive must be installed in per-machine mode (ALLUSERS=1) on multi-session hosts:

  • Standard OneDrive installs per-user in %localappdata% β€” this does not work well on shared machines
  • Per-machine installation puts OneDrive binaries in Program Files and runs for all users
  • Updates are handled centrally (no per-user update processes)

Key OneDrive features for AVD

FeatureWhat It DoesWhy It Matters for AVD
Known Folder Move (KFM)Syncs Desktop, Documents, Pictures to OneDriveUsers’ files are backed up and available across sessions
Files On-DemandFiles appear in Explorer but download only when openedSaves profile size β€” files are not stored in the FSLogix VHD(X)
Silent sign-inAutomatically signs users into OneDrive using their Windows credentialsNo manual sign-in needed each session
Per-machine installOne installation serves all usersMandatory for multi-session β€” avoids per-user installs

Files On-Demand and FSLogix

Files On-Demand is critical for AVD profile sizing:

  • Without Files On-Demand: all synced files are downloaded to the profile VHD(X) β€” a user with 50 GB of OneDrive data needs a 50 GB+ profile
  • With Files On-Demand: files show as placeholders and download only when opened β€” profile stays small
  • Configure via Group Policy or Intune: FilesOnDemandEnabled = 1

🌐 Priya’s OneDrive rollout: β€œOur first attempt without Files On-Demand was a disaster β€” profiles ballooned to 40 GB because everyone’s OneDrive content was syncing. We enabled Files On-Demand and average profile size dropped to 8 GB. Ben’s creative team has 200 GB of assets in OneDrive, but only the files they actually open get downloaded to their session.”

Microsoft Teams on AVD β€” media optimisation

Teams on AVD requires special attention because audio and video processing is resource-intensive.

The problem without media optimisation

Without optimisation, Teams runs entirely on the session host:

  1. User’s microphone audio is sent via RDP to the session host
  2. Session host processes the audio and sends it to the Teams service
  3. Incoming audio from the Teams service is processed on the session host
  4. Processed audio is sent back via RDP to the user’s speakers
  5. Same for video β€” webcam capture, encoding, decoding all on the session host

This creates: high CPU usage on session hosts, poor audio/video quality, echo, delay, and a terrible user experience β€” especially with multiple users on the same VM.

The solution: WebRTC Redirector (media optimisation)

Teams media optimisation offloads audio/video processing to the client device:

  1. The WebRTC Redirector Service runs on the session host
  2. When a Teams call starts, audio/video streams are redirected to the client
  3. The client device captures microphone, processes audio, encodes/decodes video
  4. Media streams flow directly between the client and the Teams service
  5. Session host CPU is freed β€” it only handles the Teams chat and UI
ComponentWhat It DoesWhere It Runs
New Teams clientTeams app with built-in AVD optimisationSession host
WebRTC RedirectorIntercepts media and redirects to clientSession host (service)
Windows App / native clientHandles media processing locallyClient device

Requirements for Teams media optimisation

  • New Teams client (the latest Teams built on Edge WebView2)
  • WebRTC Redirector Service installed on session hosts
  • Windows App or supported native client on the user’s device
  • Web client does NOT support media optimisation

🌐 Priya’s Teams transformation: β€œBefore media optimisation, every Teams call consumed 40% CPU per user on the session host. With 10 users in calls, the VM was maxed out. After enabling the WebRTC Redirector, Teams media runs on the user’s laptop. Session host CPU dropped to 5% per user during calls. Yuki, our compliance officer, was thrilled β€” call quality finally met our SLA.”

Deep dive: New Teams vs classic Teams on AVD

The new Microsoft Teams client (built on Edge WebView2) has significantly better AVD integration than classic Teams:

  • Better resource usage (up to 50% less memory)
  • Built-in optimisation support without separate MSI installers
  • Faster startup times
  • Improved meeting experiences (gallery view, Together mode)

New Teams on AVD still requires the IsWVDEnvironment=1 registry key to activate optimised media. It uses SlimCore for media processing with a WebRTC Redirector fallback β€” it does NOT auto-detect the AVD environment without the registry key. If media optimisation is not working, check that this key is set.

For the exam, know that the new Teams is the recommended version. Classic Teams on AVD is being deprecated.

Browser considerations

  • Pre-installed on Windows 11 session host images
  • Supports multimedia redirection (MMR) for optimised video playback
  • Enterprise management via Intune or Group Policy (ADMX templates)
  • Extensions can be centrally managed and enforced

Browser multimedia redirection

MMR works with Edge and Chrome to offload browser-based video to the client:

AspectWith MMRWithout MMR
Video decodingClient deviceSession host
CPU usageLow on session hostHigh on session host
Video qualityNative playback qualityRe-encoded through RDP
Supported sitesYouTube, Vimeo, and compatible streamingAll sites (but poorly)
Question

What is shared computer activation, and when is it required?

Click or press Enter to reveal answer

Answer

Shared computer activation is a licensing mode where each user activates their own Microsoft 365 licence on a shared machine. It is required when deploying Microsoft 365 Apps on multi-session AVD session hosts (pooled host pools). Personal host pools do not need it.

Click to flip back

Question

Why must OneDrive be installed in ALLUSERS mode on multi-session AVD hosts?

Click or press Enter to reveal answer

Answer

Standard OneDrive installs per-user in the local AppData folder, which does not work well on shared machines. ALLUSERS (per-machine) mode installs OneDrive in Program Files so it serves all users with centralised updates.

Click to flip back

Question

How does Files On-Demand help with FSLogix profile sizing?

Click or press Enter to reveal answer

Answer

Files On-Demand shows OneDrive files as placeholders that download only when opened. Without it, all synced files download into the user's FSLogix profile VHD(X), potentially causing massive profile sizes. With it, profiles stay small because only accessed files consume disk space.

Click to flip back

Question

What does the WebRTC Redirector Service do for Teams on AVD?

Click or press Enter to reveal answer

Answer

It intercepts Teams audio/video streams on the session host and redirects them to the client device for local processing. This offloads CPU-intensive media encoding/decoding from the session host, dramatically improving call quality and reducing server load.

Click to flip back

Knowledge Check

Raj is deploying Microsoft 365 Apps to TerraStack's pooled multi-session host pool. He installs Office in the golden image but forgets to enable SharedComputerLicensing. What happens when the second user tries to open Word?

Knowledge Check

Priya notices that OneDrive is consuming 30 GB in user profiles. Users have large OneDrive libraries with video assets. What should Priya enable to reduce profile size?

Knowledge Check

Mia's clinicians report terrible Teams call quality β€” echo, delay, and choppy video. They connect through the AVD web client. What should Mia change?


Next up: App Attach: Dynamic Application Delivery β€” deliver apps separately from the OS image using VHD, CIM, and MSIX packages that mount at sign-in.