![]() You can download the 2 scripts mentioned above from my GitHub repository. Remove-Item $env:LOCALAPPDATA\Set-Teams-BG-task-done -Recurse -force Remove-Teams-Backgrounds-task Remove-Item 'C:\ProgramData\Set-Teams-Backgrounds' -Recurse -force New-item $MECMDetectionFolder\$MECMDetecionFile -erroraction Silentl圜ontinue #Create the txt file for MECM detection methode New-item -itemtype "directory" -path $MECMDetectionFolder -erroraction Silentl圜ontinue #Create the folder for MECM detection methode Start-ScheduledTask -TaskName "$taskName" # Website: # Modified by: Remco Janssen (19-01-2021) # Script to copy companies teams backgrounds to users %appdata%\Microsoft\Teams\Backgrounds. It will write important information in the log.If the device is within the coporate network it will copy the background images from the folder on the share to the teams background location of the user.Checks if the device is connected to your corporate network.(%appdata%\Microsoft\Teams\Background\Uploads) Checks if the Uploads folder is present, if not it will be created.If teams is started once before it will check if the background folder is present (%appdata%\Microsoft\Teams\Background), if not it will be created.Checks if teams is already started once before by the user (%appdata%\Microsoft\Teams), if not the script will do nothing. ![]() Checks if the logfolder is present, if not it will create the logfolder and a logfile (%localappdata%\Logs\BG-copy.log).(You will only have to change the $sourcefolder variable to the Teams-Backgrounds folder created above.) Create the variables need for the script to run.The powershell script SetTeamsBackgrounds.ps1 wil do the following actions: The images that you will place in Teams-Backgrounds will have some requirements: Teams-Backgrounds (for the images to distribute as teams backgrounds) Set-Teams-Backgrounds (for the content needed to run the script) ![]() If you're satisfied with the preview, click "Apply" or "Save" to set it as your background image.Īfter following these steps, you should have successfully added a new background image in Microsoft Teams for personal use.In order for the powershell script to work you will need 2 folders on a netwerkshare that can be accessible for the users where you want to deploy the backgrounds to (read only).The selected image should now appear in the "Custom" section of the background options.Select the image file and click "Open" or "Add.".Navigate to the location where you saved the background image.Click on the "+" (plus) icon or the "Add new" button, depending on the Teams version.In the Background settings window, you will see the available background options.Click on the "Background settings" option.In the Settings menu, select "Devices" from the options on the left side.In the dropdown menu, select "Settings.".Click on your profile picture or initials located at the top right corner of the Teams interface.Sign in to your Teams account if you haven't already.And you cant change the default, the user will need to select a custom background. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |