{"id":3588,"date":"2021-05-13T10:40:53","date_gmt":"2021-05-13T09:40:53","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3588"},"modified":"2021-05-13T10:40:53","modified_gmt":"2021-05-13T09:40:53","slug":"distributing-teams-backgrounds-to-all-users-using-mem","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2021\/05\/distributing-teams-backgrounds-to-all-users-using-mem\/","title":{"rendered":"Distributing Teams Backgrounds to all users using MEM"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve seen a few examples of distributing a set of teams backgrounds to users in MEM, mostly they seemed a little overly complex, especially in targetting all local users and\/or packaging the script into an application. I wanted to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Deploy using MEM PS script in user context<\/li><li>Avoid access controls on the storage location of the backgrounds<\/li><li>Simplify the creation of required Azure resources<\/li><li>Have a simple update procedure<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s my take, first autocreate a blob storage location using my template:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/ARM%20templates\/blob%20storage%20with%20container%20for%20Teams%20Backgrounds%20and%20public%20access.json\">https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/ARM%20templates\/blob%20storage%20with%20container%20for%20Teams%20Backgrounds%20and%20public%20access.json<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note down the name you used for the storage account (which was the only parameter to the template), and use it to configure this PowerShell script:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/add-teamsBackgroundsFromBlobContainer.ps1\">https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/add-teamsBackgroundsFromBlobContainer.ps1<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, deploy the script to a group of your users in MEM, in their own context:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/05\/2021-05-13-11_29_35-Add-Powershell-script-Microsoft-Endpoint-Manager-admin-center.png\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"449\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/05\/2021-05-13-11_29_35-Add-Powershell-script-Microsoft-Endpoint-Manager-admin-center.png\" alt=\"\" class=\"wp-image-3589\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/05\/2021-05-13-11_29_35-Add-Powershell-script-Microsoft-Endpoint-Manager-admin-center.png 989w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/05\/2021-05-13-11_29_35-Add-Powershell-script-Microsoft-Endpoint-Manager-admin-center-300x136.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2021\/05\/2021-05-13-11_29_35-Add-Powershell-script-Microsoft-Endpoint-Manager-admin-center-768x349.png 768w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve seen a few examples of distributing a set of teams backgrounds to users in MEM, mostly they seemed a little overly complex, especially in targetting all local users and\/or packaging the script into an application. I wanted to: Deploy using MEM PS script in user context Avoid access controls on the storage location of &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2021\/05\/distributing-teams-backgrounds-to-all-users-using-mem\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Distributing Teams Backgrounds to all users using MEM<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[49,22,27,39],"tags":[],"class_list":["post-3588","post","type-post","status-publish","format-standard","hentry","category-arm","category-intune","category-microsoft-teams","category-powershell"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=3588"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3588\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}