Skip to content

Instantly share code, notes, and snippets.

@dichternebel
Last active October 17, 2024 08:31
Show Gist options
  • Save dichternebel/df23391ab00644f73712b56d8a94f4f5 to your computer and use it in GitHub Desktop.
Save dichternebel/df23391ab00644f73712b56d8a94f4f5 to your computer and use it in GitHub Desktop.
Custom MS Teams Background on VDI / Azure Virtual Desktop

Info

When using MS Teams on e.g. Azure Virtual Desktop there is currently no possibility to set custom background images for video calls. This is on the roadmap and will be available on April 2025:
https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=410366

In the meantime...

I am using the Remote Desktop Application (msi version) on Microsoft Windows 11 that can be found here:
https://learn.microsoft.com/en-us/azure/virtual-desktop/users/connect-windows?pivots=remote-desktop-msi#download-and-install-the-remote-desktop-client-msi

I noticed that there happened file changes when starting the Teams (new) App on the AVD. I looked into what was written onto my PC and found the background image I've just chosen in the following folder:

%localappdata%\Temp\ named RtcVideoBackgroundImage.png

I then replaced the image with a custom one just using the same name, set the file attribute to read-only and started the Teams App on the AVD and voilà my custom backround was there.

This also works with animated backgrounds! I used a small mp4 file with the resolution of 1920x1080, renamed it to RtcVideoBackgroundImage.png, also set it to read-only and got my custom animated background.

Conclusion

With this simple hack it is currenlty possible to manually change the background for MS Teams video calls on AVD using the Remote Desktop App. This might of course break sooner or later. If you find this useful, why not buying me a beer... um... coffee?

Cheers!


https://ko-fi.com/dichternebel

@leofonic
Copy link

Thank you! In my testing only works with Remote Desktop Client up to 1.2.5331 though, newer versions connect using slim core media instead of WebRTC, and do not seem to make use of this image. Download Url is https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW1kHro

@dichternebel
Copy link
Author

I was hoping that this would work a little longer... ;-)
Thanks for your reply. I will stay with that version as long as it works then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment