Intune not updating teams background image on current users via powershell

Jose Ortiz 0 Reputation points

I have a powershell script and folder with images that I made a 32bit intune app

I created a package in intune and it would upload the image to new profiles, but it will not update any existing profiles.

It would state in the install status that it installed but nothing gets updated. I heard that there is an limitation of updating the app so I had to "uninstall" the old app and create a new one. I "uninstalled" the old one and made a new one that superseded the old one, but I have the same issue where a old profile will not get the updated images, but new profile will get the images installed. Am I missing something in the setup?AgentExecutor-10-3-2023.txt

#set upload folder
# create folder if not exists
if(!(Test-Path -path $UploadFolder))  
 New-Item -ItemType directory -Path $UploadFolder
 Write-Host "Folder has been created successfully"
Write-Host "The folder already exists"; 
#delete old images
Remove-Item -Path $UploadFolder\*.* -Force
#copy all (image) files to the upload folder
Copy-Item -path '.\images' -Filter *.* -Destination $UploadFolder -Recurse -Container:$false

User's image

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,254 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,483 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 9,160 Reputation points Microsoft Vendor

    @Jose Ortiz,Thanks for posting in Q&A.

    From you description, I know that you want to customize teams background via PowerShell but get an issue that old profile will not get updated images.

    For old configuration file, the detection rule detected that the file already existed, therefore it will not download the new configuration file and background image. Please check the detection rule in Intune and check IME log on targeted devices and share them with us.

    Thanks for your kind understanding.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.