Set MacOS Desktop Wallpaper using Intune: Step-by-Step Guide

In this post, I will show you how to set up MacOS desktop wallpaper using Intune. With the help of a desktop wallpaper script and a mobile config file, you can perform macOS desktop wallpaper deployment with Intune.

For Windows devices, most organizations prefer to use a group policy to deploy desktop background wallpaper. It works well on Windows 10 and Windows 11 devices. For Intune-managed macOS devices, you have to use a combination of shell script and a custom configuration profile to set desktop wallpaper.

One of the members of the Intune Telegram group asked for a tutorial on how to set desktop wallpaper for macOS using Intune. Despite the fact that it appeared difficult, I wanted to test it in my lab and confirm that it worked. Now that my testing is complete, I was able to set desktop wallpaper for macOS devices using Intune, and I’ll walk you through the process.


http://hnpoiema.iptime.org/g5/bbs/board.php?bo_table=free&wr_id=181139

http://jkm666.com/forum.php?mod=viewthread&tid=298903

http://jkm666.com/forum.php?mod=viewthread&tid=227369

http://jkm666.com/forum.php?mod=viewthread&tid=392549

https://forum.freeisrael.org.il/viewtopic.php?t=67507

https://forum.freeisrael.org.il/viewtopic.php?t=61457

https://forum.freeisrael.org.il/viewtopic.php?t=65619

https://forum.jarisnews.com/index.php?topic=233597.0

https://forum.jarisnews.com/index.php?topic=220613.0

https://forum.jarisnews.com/index.php?topic=207495.0

http://www.zju-edu.net/forum.php?mod=viewthread&tid=6569017

http://www.zju-edu.net/forum.php?mod=viewthread&tid=3526

http://www.zju-edu.net/forum.php?mod=viewthread&tid=320

https://forum-old.soria2.pl/index.php?/topic/15288-dsfshrc-zrrahb/

https://forum-old.soria2.pl/index.php?/topic/14870-ovbtpri-ejnhch/

https://forum.interstate420productions.com/viewtopic.php?t=17355

https://forum.interstate420productions.com/viewtopic.php?t=31476

https://forum.interstate420productions.com/viewtopic.php?t=17310


Download the Scripts for Desktop Wallpaper and Wallpaper MobileConfig


Microsoft provides two files on their GitHub Shell Intune Samples for macOS desktop wallpaper deployment via Intune:


  1. download wallpaper.sh: This script is intended to be delivered to the Mac by the Intune Scripting Agent. This shell script downloads the wallpaper image from a URL specified and puts it in the /Library/Desktop location on the macOS device. The file name is set to Wallpaper.jpg.
  2. wallpaper. mobile config: A mobile-config profile file instructs the Mac to actually change the wallpaper image.


To set the macOS desktop wallpaper with Intune, you’ll need both of the above files. You will also need a web server to publish your Desktop Wallpaper image. If you have Azure Blob Storage, it is ideal for this; otherwise, any public web server will suffice. I have downloaded both files and saved them to a folder on my PC.

If you have the corporate desktop wallpaper image for a macOS device, you will need to publicly host it. The image file URL should be accessible by anyone, and you should update this image path in the download wallpaper. sh, shell script file. Let me show you how to do that. Open the download wallpaper. sh, file with the Notepad application. Look for the “wallpaper” parameter and replace the image path with your corporate desktop wallpaper image and save the file.


Set MacOS Desktop Wallpaper using Intune


We will now go through the steps to set up MacOS desktop wallpaper using Intune. I’ll break down the entire process into steps to make it easier to follow.


  1. Add a macOS Shell Script to download the wallpaper
  2. Create a Custom Configuration profile to instruct Mac to apply the wallpaper


In the end, I will also show you how to monitor the shell script and configuration profile assignments and cover troubleshooting macOS desktop wallpaper deployment using logs.


http://nhatrohatinh.com/index.php?threads/c%E1%BA%A7n-b%C3%A1n-t%E1%BB%A7-l%E1%BA%A1nh-sanaky-%C4%91%C3%A3-qua-s%E1%BB%AD-d%E1%BB%A5ng-1-n%C4%83m.33/

http://nhatrohatinh.com/index.php?threads/c%C3%B3-ph%C3%B2ng-tr%E1%BB%8D-cho-thu%C3%AA-%C4%91%C6%B0%E1%BB%9Dng-26-3.1/

http://zinaramirez.com/mybb/thread-225598.html

https://socalireefer.com/forum/showthread.php?tid=469673

http://hondaikmciledug.co.id/HRIS/showthread.php?tid=132&pid=137#pid137

https://australiantravelforum.com/travel/showthread.php?tid=201227

http://www.yypf.com/showthread.php?tid=1307

http://ordemdospsicologos.org/forum/showthread.php?mode=threaded&tid=403&pid=2552

https://forum.racing.by/viewtopic.php?t=321551

https://forum.racing.by/viewtopic.php?t=32571

http://libens.freehostia.com/viewtopic.php?t=324895

http://libens.freehostia.com/viewtopic.php?t=369741&highlight=

https://hardware2talk.com/danimer-scientific-receives-us-patent-for-biodegradable-marking-wax/

http://www.izolacniskla.cz/forum-detail.php?dt_id=29411

https://denniss.forum2go.nl/viewtopic.php?t=11648

https://denniss.forum2go.nl/viewtopic.php?t=63440

https://denniss.forum2go.nl/viewtopic.php?t=66813

http://www.arcierimirasole.org/forum/viewtopic.php?f=14&t=12685

http://www.arcierimirasole.org/forum/viewtopic.php?f=14&t=5248


Step 1: Add a macOS Shell Script in Intune to Download Wallpaper


In this step, we’ll add a new shell script in Intune to download wallpaper on macOS devices. If you’re new to Mac scripts, refer to the following guide on how to use shell scripts on macOS using Intune.


  • Sign in to the Microsoft Intune admin center.
  • Go to Devices > macOS > Shell Scripts.
  • To add a new script, select +Add.


On the Basics tab, enter the name for the script as “Set Desktop Wallpaper for macOS using Intune“. Enter a brief description describing the script and click Next.

On the Script Settings tab, click on the folder icon to upload the script to download wallpaper for macOS. Configure the following script settings in the same window.


  • Run the script as a signed-in user: No
  • Hide script notifications on devices: Yes
  • Script frequency: Every 1 day
  • Number of times to retry if the script fails : 3


You’ll see a notification “Upload completed for download wallpaper. sh” confirming that the script has been uploaded successfully. You’ll also be able to review the script content, but it cannot be modified. Click Next.

On the Assignments tab, you select the Azure groups to assign the shell script. Select one or more user or device groups to whom you want to assign the script. The groups you select are shown in the list, and will receive your script policy. Click Next.

In Review + Add, a summary is shown of the settings you configured. Select Add to save the script. When you select Add, the script policy is deployed to the macOS device/user groups you chose.

The desktop wallpaper macOS Shell script you created now appears in the list of scripts. If needed, you can select and view the contents of macOS shell scripts after you upload them to Intune.


Step 2: Create Configuration Profile to Set Desktop Wallpaper for macOS


In Step 1, the script that we added will download the desktop wallpaper image to your MacOS devices. To apply the image as desktop wallpaper on macOS, we will create a new configuration profile.


  • Sign in to the Microsoft Intune admin center.
  • Go to Devices > macOS > Configuration Profiles.
  • Select Create Profile to add a new profile for macOS devices.


On the Create a Profile window, select the following:


  • Profile Type: Templates
  • Template Name: Custom


Click Create.


Enter the name for the Configuration Profile as “MacOS Desktop Wallpaper Deployment” or something relevant. You may add a brief description of the profile. Click Next.


On the Configuration Settings tab, specify the following information:


  • Custom Configuration Profile Name: MacOS Desktop Wallpaper.
  • Deployment Channel: Device Channel.
  • Configuration Profile File: Click the folder icon and select the wallpaper.mobile config file to upload.


Wait until the wallpaper is. mobile config file is successfully uploaded to Intune. Once it’s done, click Next.

On the Assignments tab, you select the Azure groups to apply the configuration profile. Select one or more user or device groups to whom you want to assign the profile. The groups you select are shown in the list and will receive your profile settings. Click Next.

In Review + Add, a summary is shown of the settings you configured. Select Create to create the configuration profile. When you select Create, the profile settings are deployed to the macOS device/user groups you chose.


http://www.arcierimirasole.org/forum/viewtopic.php?f=14&t=12571

https://www.commandlinefu.com/commands/view/4685/ping-flood

https://yomad.me/nomad/viewtopic.php?t=74905

https://yomad.me/nomad/viewtopic.php?t=76819

https://yomad.me/nomad/viewtopic.php?t=9442

http://www.oberoende.info/rfhlups/forum/viewtopic.php?f=4&t=14444

http://www.oberoende.info/rfhlups/forum/viewtopic.php?f=26&t=12902

https://www.goalissimo.org/forum/viewtopic.php?f=22&t=316155

https://www.goalissimo.org/forum/viewtopic.php?f=4&t=242626

https://www.goalissimo.org/forum/viewtopic.php?f=4&t=241854

http://www.greenbr21.com/bbs/board.php?bo_table=data_br21&wr_id=29&sfl=&stx=&sst=wr_hit&sod=desc&sop=and&page=1


Monitor MacOS Desktop Wallpaper Deployment in Intune


As we have assigned a macOS Shell script and a custom configuration profile to set desktop wallpaper for macOS, both of these can be monitored in the Intune Portal.

You can monitor the run status of all assigned macOS scripts for users and devices by choosing one of the following reports in Intune:


  • Shell Scripts > Select the script to monitor > Device status.
  • Shell Scripts > Select the script to monitor > User status.


From the screenshot below, we see the macOS script to download the wallpaper has succeeded on the devices.

Comments

Popular posts from this blog

Display Lock Screen Message for MacOS Users using Intune

Fix Intune Win32 App Deployment Error 0x87D1041C

The most effective method to Install Games on Your Computer