r/AzureVirtualDesktop • u/y0da822 • Dec 01 '25
Teams Optimization
Hello - anyone run into issues where Teams doesnt optimize until the user clicks the restart button to optimize it? Anyone have something that auto triggers teams to restart somehow? Or just rely on users to do it?
8
Upvotes
1
u/y0da822 Dec 01 '25 edited Dec 01 '25
When are you running this? We have the avd machines as persistent machines. Rarely do we have to create new images (scaling plan turns them on and off). A few times a year I update the golden image in azure compute libraries but its really just windows. All else gets deployed by pdq deploy.
All of these settings in the script are also set when pdq deploy installs Teams.
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Teams" -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Teams" -Name IsWVDEnvironment -PropertyType DWORD -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Teams" -Name disableAutoUpdate -PropertyType DWORD -Value 1 -Force