![]() I hope this helps many users to push custom backgrounds to Microsoft teams via the help of Intune PowerShell scriptsĪt some point this feature changed, so a big GOTYA to watch out for when moving backgrounds into the Upload folder. Remove-Item -Path $TempFolder -Recurse -Force Tidy up duplicate images by removing the temp folder New-Item -Path "$destination" -ItemType Directory | out-nullĬopy-item -path "$TempFolder*.*" -Destination $destination -Force $destination = ("$env:SystemDrive" + "\users\" + "$user" + "\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads") $AllLocalUsers = (Get-ChildItem -path $env:SystemDrive:\Users).name Start-BitsTransfer -Source $source -Destination $TempFolder, #$TempFolder, $TempFolder, $TempFolderĬopy images from temp location "c:\temp\" to "Users" Microsoft Teams custom backgrounds location ("\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads") New-Item -ItemType directory -Path $UploadFolder $UploadFolder="$env:APPDATA\Microsoft\Templates" Write-Host "Folder has been created successfully" New-Item -ItemType directory -Path $TempFolder %AppData%\Microsoft\Teams\Backgrounds\Uploads "C:\Users USERNAME\AppData\Roaming\Microsoft\Teams\Backgrounds\Uploads" Then after that, the script was able to move the images from the temporary root directory to the individuals users profile. This script only seemed to work for me if I took a 2 step approach.įirstly, download the images from a public holding site onto the users root drive (anywhere other than the %Appdata%). I'm going to post the script I used so that other users can trial it out for themselves. So after some thinking and trialling various different scripts, I found a method that worked perfectly for me. (like your corporate website or an azure blob) So, Microsoft Support suggested using PowerShell scripts, located under the devices section, also suggested downloading the images from a public holding site. ![]() BAT files that were attempting to update information under "USER context" There was NO information on why it was failing, how to diagnose the status issue or how get the app to successfully deploy.Īfter a many hours I contacted Microsoft Help & Support, that suggested Win32 Apps may not be the best approach and may not work as Win32 apps was primarily designed to run / execute "EXE" files wrapped in a "INTUNEWIN" file. However, ever guide/forum I used ended up failing saying that the status was "Not Applicable". I found many sites that pushed me towards using Win32 Apps within Intune and the step-by-step guides where easy to follow. I have been asked by my company to find a way to deploy corporate Backgrounds to Microsoft Teams.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |