07-30-2024 01:47 AM - last edited on 08-02-2024 09:50 AM by BScott
Hey Folks,
A while ago I worked out V1 which obviously is outdated - so here I am for a refresh!
Long story short, let's dive in.
#!/bin/bash
# Change this line
URL="https://your-image-url/background.jpg"
# Do NOT change below
# Destination path
DESTINATION="/Users/Shared/background.jpg"
# Download the image file
curl -o "$DESTINATION" "$URL"
/Users/Shared/background.jpg
This will do the lock screen as well.
LockscreenUrl = "https://your-image-url/lockscreen.jpg"
$wallpaperUrl = "https://your-image-url/background.jpg"
$BackgroundSource = "C:\Windows\temp\background.jpg"
$LockScreenSource = 'C:\pathToImages\lockImage.jpg'
Invoke-WebRequest -Uri $wallpaperUrl -OutFile $BackgroundSource
Invoke-WebRequest -Uri $LockscreenUrl -OutFile $LockScreenSource
Hope you like it and this will make our IT life slightly easier while our users enjoy the fresh new view on their desktop 😀.
Catch you up at the next one!
07-31-2024 03:31 PM
If we use the Mac version above, does it prevent users from changing the background? I like the idea of setting a background default, but I really don't want to force it on the users if they'd rather change it.
08-01-2024 03:12 AM
since we are dropping a mobileconfig from MDM, so it's mandated by default. however, you can unbind the wallpaper custom policy from the device (or a group) once confirmed the policy been applied successfully. in this case, user will be able to change the wallpaper again.
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.