

Changing the prefix gives the option to target two versions of the script to different AAD groups. You can easily change this to your needs, same for the extension if you like to have. Update: Based on a readers comment, I would like to mention here that it is also possible to modify the wallpaper prefix, in the script example above $global:wallpaper is set to wallpaper. To setup an Azure blob storage account just follow this official guide here: Quickstart: Upload, download, and list blobs with the Azure portal All other devices which already set a personalized wallpapers are not touched.Įverything will be logged to “%localappdata%\temp\Set-Wallpaper.log” in the format of the ConfigMgr Tace Log Tool (cmtrace.exe), like seen below into This makes it possible to change the pre-defined wallpaper only for devices which are still having the pre-defined wallpaper set. If the current wallpaper is a user-defined one, the script will not change anything.
#Website wallpaper clouds download#
If the current wallpaper is still our pre-defined one (registry: HKCU\Control Panel\Desktop\WallPaper) the script will go and download the correct aspect ratio image again and set/refreshes it.If the script is triggered to run again:.The first run off the script, if there is no wallpaper found, the script will download and set the correct wallpaper for the aspect ratio.The following logic is available in the script: The re-upload is necessary, otherwise Intune will not trigger the script again, as it is marked as already run. Then you have to re-upload the PowerShell script to Intune to trigger it again.
#Website wallpaper clouds update#
If you later decide to update the picture you can simply replace the images on the Azure blob storage with the new wallpaper images. Intune PowerShell script Set-Wallpaper configured to run in user context Here an example of a Azure blob storage container: In the fallback case all aspect ratios will be mapped to one of these ratios: For example a 4×3 display is detected and the image is not available, I will do a fallback download to 3×2.Īs the lowest common denominator you have to provide 2 wallpaper images on the Azure blob storage. If a wallpaper for the determined aspect ratio is not found, I try to get one which is mostly compatible. If you don’t like to provide so many different wallpapers, I do a fallback. I just have to create them and upload them to the Azure blob storage account. This way I can provide the correct wallpapers for every device with little effort. By definition for a 16×9 aspect ratio it will download the file wallpaper-16×9.jpg from the Azure blob storage. So, the script is figuring out the aspect ratio and downloads a wallpaper fitting this aspect ratio. For example, most laptops nowadays come with a ratio of 16×9 or 3×2. To provide the best user experience I implemented a small extra logic to find the aspect ratio of the primary monitor. I wanted to have a similar approach like Intune, pointing to a public URL, I’ve chosen a Azure blob storage to store the wallpaper images. There are a lot of other solutions out there covering this topic, this is now my approach. Trying to make him happy and let his family picture generate a smile on his face :-).Īs Intune only has the option to set it fixed, I wrote a small script to do this job for me. I want to set a predefined wallpaper and let the user change it later on if he likes to. Microsoft Intune Desktop background picture configuration policy I want people to make the desktop more personal. So the Intune native configuration profile option to set a fixed wallpaper is not going to fit in my approach. Many people sit in front of their devices 8h and more a day. In fact this is for some younger people a hiring reason. It serves how they work and they feel esteemed by their company. This way people can be productive as their device fits their individual needs. They should walk away with their new device and think, “Hey, I really love my newly chosen device and I’m able to make it personal”. For this I really want users to let them define their own wallpaper. But a modern approach for me, is a choose your own device (CYOD) policy and the ability to personalize the device in a certain degree to you personal needs. I’m not talking about BYOD, I’m still talking about a corporate device. I really do like the idea to personally enable the modern desktops today. Sadly for the desktop background (aka wallpaper) this is a bit more challenging. For example when you have a class room and all devices are locked, you get a really nice uniform appearance.

It is something which provides little effort to implement and does a really good job. Microsoft Intune Locked screen configuration policy
